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,18 +595,22 @@ public class APIDescGetter extends DescGetter ...@@ -595,18 +595,22 @@ public class APIDescGetter extends DescGetter
{ {
String entry = buf.readLine(); String entry = buf.readLine();
if (entry != null)
{
if (entry.endsWith(sEndsWithCSVName)) if (entry.endsWith(sEndsWithCSVName))
{ {
System.out.println("FOUND ####"); System.out.println("FOUND ####");
InputStream input = this.getClass().getResourceAsStream("/objdsc/" + InputStream input =
this.getClass().getResourceAsStream("/objdsc/" +
module + module +
"/" + "/" +
entry); entry);
csvFile = new BufferedReader( csvFile =
new InputStreamReader(input)); new BufferedReader(new InputStreamReader(input));
found = true; found = true;
} }
} }
}
buf.close(); buf.close();
} }
......
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