From 5be29e739462407176691ce71c1707a53de4c692 Mon Sep 17 00:00:00 2001 From: Chris Jaekl Date: Sun, 13 Dec 2015 21:06:36 +0900 Subject: [PATCH] Avoid NullPointerException in HtmlReport.writeSummary(). --- prod/net/jaekl/cfb/analyze/HtmlReport.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(" "); -- 2.39.2
" + trans(CfbBundle.OLD_VERSION) + SEP + "" + m_delta.getEarlier().constructVersionText(m_bundle) + "" + earlierVersion + "