From: Chris Jaekl Date: Sun, 13 Dec 2015 11:09:38 +0000 (+0900) Subject: Fix null-pointer dereference in Delta.java. X-Git-Url: https://jaekl.net/gitweb/?a=commitdiff_plain;h=d8e97e6965659c4a86c3e0803b432d5c9a0f9054;p=cfb.git Fix null-pointer dereference in Delta.java. --- diff --git a/prod/net/jaekl/cfb/analyze/Delta.java b/prod/net/jaekl/cfb/analyze/Delta.java index 865b5fc..fc85812 100644 --- a/prod/net/jaekl/cfb/analyze/Delta.java +++ b/prod/net/jaekl/cfb/analyze/Delta.java @@ -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();