aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2009-12-19 11:26:10 +0000
committerYegor Kozlov <yegor@apache.org>2009-12-19 11:26:10 +0000
commitd52b3ed45202198b67610d262988b6d7d80ff5e8 (patch)
treef784a55d7ef5b964f1ac43d29a14d5707d4638b8 /src
parentbed01967f0dd8dcc012b5011f6778f51d2d573c9 (diff)
downloadpoi-d52b3ed45202198b67610d262988b6d7d80ff5e8.tar.gz
poi-d52b3ed45202198b67610d262988b6d7d80ff5e8.zip
fixed possible NPE in LbsDataSubRecord.toString()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@892461 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rwxr-xr-xsrc/java/org/apache/poi/hssf/record/LbsDataSubRecord.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java b/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java
index 71217651df..57ebb20396 100755
--- a/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java
@@ -243,7 +243,7 @@ public class LbsDataSubRecord extends SubRecord {
sb.append("[ftLbsData]\n");
sb.append(" .unknownShort1 =").append(HexDump.shortToHex(_cbFContinued)).append("\n");
sb.append(" .formula = ").append('\n');
- sb.append(_linkPtg.toString()).append(_linkPtg.getRVAType()).append('\n');
+ if(_linkPtg != null) sb.append(_linkPtg.toString()).append(_linkPtg.getRVAType()).append('\n');
sb.append(" .nEntryCount =").append(HexDump.shortToHex(_cLines)).append("\n");
sb.append(" .selEntryIx =").append(HexDump.shortToHex(_iSel)).append("\n");
sb.append(" .style =").append(HexDump.shortToHex(_flags)).append("\n");