projects
/
cfb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d8e97e6
)
Avoid NullPointerException in HtmlReport.writeSummary().
author
Chris Jaekl
<cejaekl@yahoo.com>
Sun, 13 Dec 2015 12:06:36 +0000
(21:06 +0900)
committer
Chris Jaekl
<cejaekl@yahoo.com>
Sun, 13 Dec 2015 12:06:36 +0000
(21:06 +0900)
prod/net/jaekl/cfb/analyze/HtmlReport.java
patch
|
blob
|
history
diff --git
a/prod/net/jaekl/cfb/analyze/HtmlReport.java
b/prod/net/jaekl/cfb/analyze/HtmlReport.java
index c1ff762d60e6b052a4cafa91a9495439a1f7670c..03484df730b562eb6bf3e5f28592a6d8ad908a1f 100644
(file)
--- 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 = ": ";
{
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(" <P>");
pw.println(" <TABLE>");
writeSectionHeading(pw, trans(CfbBundle.CFB_REPORT));
pw.println(" <P>");
pw.println(" <TABLE>");
@@
-153,7
+158,7
@@
public class HtmlReport {
pw.println(" </TR>");
pw.println(" <TR>");
pw.println(" <TD CLASS=\"CategoryName\">" + trans(CfbBundle.OLD_VERSION) + SEP + "</TD>");
pw.println(" </TR>");
pw.println(" <TR>");
pw.println(" <TD CLASS=\"CategoryName\">" + trans(CfbBundle.OLD_VERSION) + SEP + "</TD>");
- pw.println(" <TD CLASS=\"CategoryValue\">" +
m_delta.getEarlier().constructVersionText(m_bundle)
+ "</TD>");
+ pw.println(" <TD CLASS=\"CategoryValue\">" +
earlierVersion
+ "</TD>");
pw.println(" </TR>");
pw.println(" <TR><TD> </TD></TR>");
pw.println(" <TR>");
pw.println(" </TR>");
pw.println(" <TR><TD> </TD></TR>");
pw.println(" <TR>");