]> jaekl.net Git - cfb.git/commitdiff
Fix null-pointer dereference in Delta.java.
authorChris Jaekl <cejaekl@yahoo.com>
Sun, 13 Dec 2015 11:09:38 +0000 (20:09 +0900)
committerChris Jaekl <cejaekl@yahoo.com>
Sun, 13 Dec 2015 11:09:38 +0000 (20:09 +0900)
prod/net/jaekl/cfb/analyze/Delta.java

index 865b5fce57fdbf7c9b21807616f4132ffd226752..fc8581253f4982ee7f125ed4d7042e6338236489 100644 (file)
@@ -18,7 +18,12 @@ public class Delta {
        
        public Delta(Analysis before, Analysis after)
        {
-               m_earlier = new Run(before);
+               if (null == before) {
+                       m_earlier = null;
+               }
+               else {
+                       m_earlier = new Run(before);
+               }
                m_later = new Run(after);
                
                m_fixed = new HashSet<BugInstance>();