mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
fixed possible NPE
This commit is contained in:
parent
3d24397af6
commit
b960c5e9fe
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ public abstract class ZLTextView extends ZLTextViewBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized int search(final String text, boolean ignoreCase, boolean wholeText, boolean backward, boolean thisSectionOnly) {
|
public synchronized int search(final String text, boolean ignoreCase, boolean wholeText, boolean backward, boolean thisSectionOnly) {
|
||||||
if (text.length() == 0) {
|
if (myModel == null || text.length() == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int startIndex = 0;
|
int startIndex = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue