radimvaculik / WikiCFP

WikiCFP (Call For Papers) helps you keep track of information about upcoming conferences and journal publications.
5 stars 3 forks source link

IllegalArgumentException in SearchBar #1

Open slumdroid opened 11 years ago

slumdroid commented 11 years ago

WikiCFP version used is 1.1.2 (the latest version on the market) Application crashes with the following stack trace when I typed in SearchBar "2014 " (the last character in text is a "space"):

E/AndroidRuntime( 2914): FATAL EXCEPTION: AsyncTask #2 E/AndroidRuntime( 2914): java.lang.RuntimeException: An error occured while executing doInBackground() E/AndroidRuntime( 2914): at android.os.AsyncTask$3.done(AsyncTask.java:299) E/AndroidRuntime( 2914): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352) E/AndroidRuntime( 2914): at java.util.concurrent.FutureTask.setException(FutureTask.java:219) E/AndroidRuntime( 2914): at java.util.concurrent.FutureTask.run(FutureTask.java:239) E/AndroidRuntime( 2914): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) E/AndroidRuntime( 2914): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) E/AndroidRuntime( 2914): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) E/AndroidRuntime( 2914): at java.lang.Thread.run(Thread.java:856) E/AndroidRuntime( 2914): Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 49: http://wikicfp.com/cfp/servlet/tool.search?q=2014 &year=a E/AndroidRuntime( 2914): at java.net.URI.create(URI.java:727) E/AndroidRuntime( 2914): at org.apache.http.client.methods.HttpGet.(HttpGet.java:75) E/AndroidRuntime( 2914): at net.kuratkoo.wikicfp.tools.Tools.getContent(Tools.java:21) E/AndroidRuntime( 2914): at net.kuratkoo.wikicfp.model.EventSet.search(EventSet.java:37) E/AndroidRuntime( 2914): at net.kuratkoo.wikicfp.SearchActivity$CategoryAsyncTask.doInBackground(SearchActivity.java:91) E/AndroidRuntime( 2914): at net.kuratkoo.wikicfp.SearchActivity$CategoryAsyncTask.doInBackground(SearchActivity.java:80) E/AndroidRuntime( 2914): at android.os.AsyncTask$2.call(AsyncTask.java:287) E/AndroidRuntime( 2914): at java.util.concurrent.FutureTask.run(FutureTask.java:234) E/AndroidRuntime( 2914): ... 4 more

slumdroid commented 11 years ago

Application crashes if you enter a phrase that contains spaces, too... such as "software engineering"