New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special input may crash the glob search #572

Closed
mvysny opened this Issue Oct 3, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@mvysny
Owner

mvysny commented Oct 3, 2015

java.lang.RuntimeException: Unable to resume activity {sk.baka.aedict3/sk.baka.aedict3.search.MainActivity}: java.lang.IllegalArgumentException: value: blank
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2605)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2633)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2100)
at android.app.ActivityThread.access$600(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4849)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: value: blank
at sk.baka.aedict.util.Check.requireNotBlank(Check.java:64)
at sk.baka.aedict.search.lucene.DBQuery$Term.(DBQuery.java:287)
at sk.baka.aedict.search.lucene.DBQuery.term(DBQuery.java:61)
at sk.baka.aedict.search.lucene.DBQuery.jp(DBQuery.java:95)
at sk.baka.aedict.search.JMDictQuery.globSearch(JMDictQuery.java:600)
at sk.baka.aedict.search.JMDictQuery.forGenericEnJpTerm(JMDictQuery.java:505)
at sk.baka.aedict.search.JMDictQuery.access$000(JMDictQuery.java:37)
at sk.baka.aedict.search.JMDictQuery$Builder.forGenericEnJpTerm(JMDictQuery.java:414)
at sk.baka.aedict3.util.Config.newQuery(Config.java:635)
at sk.baka.aedict3.search.MainActivity.getSearch(MainActivity.java:388)
at sk.baka.aedict3.search.MainActivity.liveSearch(MainActivity.java:408)
at sk.baka.aedict3.search.MainActivity.onResume(MainActivity.java:261)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1187)
at android.app.Activity.performResume(Activity.java:5318)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2595)
... 12 more

@mvysny mvysny added the bug label Oct 3, 2015

@mvysny

This comment has been minimized.

Show comment
Hide comment
@mvysny

mvysny Oct 3, 2015

Owner

Entering e.g. "* * A" could crash Aedict. Fixed in 3.38.2-next

Owner

mvysny commented Oct 3, 2015

Entering e.g. "* * A" could crash Aedict. Fixed in 3.38.2-next

@mvysny mvysny closed this Oct 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment