Kaydet (Commit) 1e7382cb authored tarafından Robert Antoni Buj i Gelonch's avatar Robert Antoni Buj i Gelonch Kaydeden (comit) Noel Grandin

runner: Dereference of the result of readLine() without nullcheck

Change-Id: I3d02436446a79137ce42b1a190c9e3985fbb9246
Reviewed-on: https://gerrit.libreoffice.org/12135Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 4d7c414a
......@@ -595,16 +595,20 @@ public class APIDescGetter extends DescGetter
{
String entry = buf.readLine();
if (entry.endsWith(sEndsWithCSVName))
if (entry != null)
{
System.out.println("FOUND ####");
InputStream input = this.getClass().getResourceAsStream("/objdsc/" +
module +
"/" +
entry);
csvFile = new BufferedReader(
new InputStreamReader(input));
found = true;
if (entry.endsWith(sEndsWithCSVName))
{
System.out.println("FOUND ####");
InputStream input =
this.getClass().getResourceAsStream("/objdsc/" +
module +
"/" +
entry);
csvFile =
new BufferedReader(new InputStreamReader(input));
found = true;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment