1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 19:42:17 +02:00

fixed NPE

git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@953 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
Nikolay Pultsin 2009-04-29 04:52:48 +00:00
parent db6049408d
commit cf8344e1ac

View file

@ -63,10 +63,8 @@ public final class ZLTextWordCursor {
return (myWordIndex == 0 && myCharIndex == 0);
}
/*Why don't we check here whether myCharIndex is in the end of the word or not?*/
public boolean isEndOfParagraph() {
return myWordIndex == myParagraphCursor.getParagraphLength();
return (myParagraphCursor != null) && (myWordIndex == myParagraphCursor.getParagraphLength());
}
public int getWordIndex() {