From: Chris Jaekl Date: Sun, 13 Dec 2015 12:06:36 +0000 (+0900) Subject: Avoid NullPointerException in HtmlReport.writeSummary(). X-Git-Url: https://jaekl.net/gitweb/?a=commitdiff_plain;h=5be29e739462407176691ce71c1707a53de4c692;p=cfb.git Avoid NullPointerException in HtmlReport.writeSummary(). --- diff --git a/prod/net/jaekl/cfb/analyze/HtmlReport.java b/prod/net/jaekl/cfb/analyze/HtmlReport.java index c1ff762..03484df 100644 --- a/prod/net/jaekl/cfb/analyze/HtmlReport.java +++ b/prod/net/jaekl/cfb/analyze/HtmlReport.java @@ -144,6 +144,11 @@ public class HtmlReport { { final String SEP = ":  "; + String earlierVersion = ""; + if (null == m_delta.getEarlier()) { + earlierVersion = m_delta.getEarlier().constructVersionText(m_bundle); + } + writeSectionHeading(pw, trans(CfbBundle.CFB_REPORT)); pw.println("

"); pw.println(" "); @@ -153,7 +158,7 @@ public class HtmlReport { pw.println(" "); pw.println(" "); pw.println(" "); - pw.println(" "); + pw.println(" "); pw.println(" "); pw.println(" "); pw.println(" ");
" + trans(CfbBundle.OLD_VERSION) + SEP + "" + m_delta.getEarlier().constructVersionText(m_bundle) + "" + earlierVersion + "