From d1a9900f0a14416c964517cd348bea6ed7501f3f Mon Sep 17 00:00:00 2001 From: Bert Date: Sun, 11 Mar 2018 11:16:50 +0100 Subject: [PATCH] fix squid:S2259 - avoid warning "Null pointers should not be dereferenced" --- cxx-lint/src/main/java/org/sonar/cxx/cxxlint/CxxLint.java | 1 + 1 file changed, 1 insertion(+) diff --git a/cxx-lint/src/main/java/org/sonar/cxx/cxxlint/CxxLint.java b/cxx-lint/src/main/java/org/sonar/cxx/cxxlint/CxxLint.java index 424906c21a..e3ffaa484d 100644 --- a/cxx-lint/src/main/java/org/sonar/cxx/cxxlint/CxxLint.java +++ b/cxx-lint/src/main/java/org/sonar/cxx/cxxlint/CxxLint.java @@ -140,6 +140,7 @@ public static void main(String[] args) { LOG.error("Parsing Command line Failed. Reason: " + exp); HelpFormatter formatter = new HelpFormatter(); formatter.printHelp("java -jar CxxLint-.jar -f filetoanalyse", options); + return; } SensorContextTester sensorContext = SensorContextTester.create(targetFile.getParentFile().toPath());