qadevOOo/runner/helper/APIDescGetter.java | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-)
New commits: commit 1e7382cb45759908cd3d639c839dcd5633dbadd1 Author: Robert Antoni Buj i Gelonch <[email protected]> Date: Wed Oct 29 16:48:00 2014 +0100 runner: Dereference of the result of readLine() without nullcheck Change-Id: I3d02436446a79137ce42b1a190c9e3985fbb9246 Reviewed-on: https://gerrit.libreoffice.org/12135 Reviewed-by: Noel Grandin <[email protected]> Tested-by: Noel Grandin <[email protected]> diff --git a/qadevOOo/runner/helper/APIDescGetter.java b/qadevOOo/runner/helper/APIDescGetter.java index 4171dc2..71c8981 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; + } } } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
