Version 4.4.3: fix 4.4.2
[fanfix.git] / src / be / nikiroo / utils / test / TestCase.java
index 9b8086f754a6aedf6f566de11bf993b50132895e..2e46a7b5472af4eabc2a5ecb4aea4e4d6d6fe89c 100644 (file)
@@ -439,13 +439,15 @@ abstract public class TestCase {
                                        String resultLine = resultLines.get(j);
 
                                        boolean skip = false;
-                                       for (Entry<String, List<String>> skipThose : skipCompare
-                                                       .entrySet()) {
-                                               for (String skipStart : skipThose.getValue()) {
-                                                       if (name.endsWith(skipThose.getKey())
-                                                                       && expectedLine.startsWith(skipStart)
-                                                                       && resultLine.startsWith(skipStart)) {
-                                                               skip = true;
+                                       if (skipCompare != null) {
+                                               for (Entry<String, List<String>> skipThose : skipCompare
+                                                               .entrySet()) {
+                                                       for (String skipStart : skipThose.getValue()) {
+                                                               if (name.endsWith(skipThose.getKey())
+                                                                               && expectedLine.startsWith(skipStart)
+                                                                               && resultLine.startsWith(skipStart)) {
+                                                                       skip = true;
+                                                               }
                                                        }
                                                }
                                        }