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:
parent
db6049408d
commit
cf8344e1ac
1 changed files with 1 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue