diff options
author | Yegor Kozlov <yegor@apache.org> | 2009-12-19 11:26:10 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2009-12-19 11:26:10 +0000 |
commit | d52b3ed45202198b67610d262988b6d7d80ff5e8 (patch) | |
tree | f784a55d7ef5b964f1ac43d29a14d5707d4638b8 /src | |
parent | bed01967f0dd8dcc012b5011f6778f51d2d573c9 (diff) | |
download | poi-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-x | src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java | 2 |
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");
|