summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-10-29 16:48:00 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-10-30 08:36:06 +0000
commit1e7382cb45759908cd3d639c839dcd5633dbadd1 (patch)
treeb8483b7c61a49b998d9a92c6491ce89a525e5549 /qadevOOo
parent4d7c414a8dd60f49073d3b34e1c37ad5e427a377 (diff)
runner: Dereference of the result of readLine() without nullcheck
Change-Id: I3d02436446a79137ce42b1a190c9e3985fbb9246 Reviewed-on: https://gerrit.libreoffice.org/12135 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/helper/APIDescGetter.java22
1 files changed, 13 insertions, 9 deletions
diff --git a/qadevOOo/runner/helper/APIDescGetter.java b/qadevOOo/runner/helper/APIDescGetter.java
index 4171dc231e2b..71c8981c84e4 100644
--- a/qadevOOo/runner/helper/APIDescGetter.java
+++ b/qadevOOo/runner/helper/APIDescGetter.java
@@ -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;
+ }
}
}