Skip to content

Commit 96e8b86

Browse files
committed
Fixes NullPointerException when reading malformed symbol table import (#395)
1 parent 8870d73 commit 96e8b86

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ion-tests

src/com/amazon/ion/impl/LocalSymbolTable.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ private static SymbolTable readOneImport(IonReader ionRep,
678678
if (ionRep.isNullValue()) continue;
679679

680680
SymbolToken symTok = ionRep.getFieldNameSymbol();
681+
if (symTok == null) continue;
682+
681683
int field_id = symTok.getSid();
682684
if (field_id == UNKNOWN_SYMBOL_ID)
683685
{

0 commit comments

Comments
 (0)