simple npe in tests fixed
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 23 Aug 2016 18:25:07 +0000 (21:25 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 23 Aug 2016 18:25:07 +0000 (21:25 +0300)
jps/jps-builders/src/org/jetbrains/jps/incremental/messages/CompilerMessage.java

index df872b1db4c9deceeaa61d73120ade2dbe29188e..c627ab7df75a09c9fc4f318465a2e954d91e3a7b 100644 (file)
@@ -54,7 +54,7 @@ public class CompilerMessage extends BuildMessage {
   }
 
   public CompilerMessage(@NotNull String compilerName, Kind kind, String messageText, String sourcePath) {
-    this(compilerName, messageText, Collections.singleton(sourcePath), kind);
+    this(compilerName, messageText, sourcePath == null ? Collections.<String>emptyList() : Collections.singleton(sourcePath), kind);
   }
 
   public CompilerMessage(@NotNull String compilerName, Kind kind, String messageText,