diff options
Diffstat (limited to 'src/cuchaz/enigma/analysis/SourceIndex.java')
| -rw-r--r-- | src/cuchaz/enigma/analysis/SourceIndex.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuchaz/enigma/analysis/SourceIndex.java b/src/cuchaz/enigma/analysis/SourceIndex.java index 960ec36..1a5a80d 100644 --- a/src/cuchaz/enigma/analysis/SourceIndex.java +++ b/src/cuchaz/enigma/analysis/SourceIndex.java | |||
| @@ -117,7 +117,7 @@ public class SourceIndex | |||
| 117 | public Token getReferenceToken( int pos ) | 117 | public Token getReferenceToken( int pos ) |
| 118 | { | 118 | { |
| 119 | Token token = m_tokenToReference.floorKey( new Token( pos, pos ) ); | 119 | Token token = m_tokenToReference.floorKey( new Token( pos, pos ) ); |
| 120 | if( token.contains( pos ) ) | 120 | if( token != null && token.contains( pos ) ) |
| 121 | { | 121 | { |
| 122 | return token; | 122 | return token; |
| 123 | } | 123 | } |