NPE with http_request()
LadyCailinBot opened this issue ยท 1 comments
CMDHELPER-2786 - Reported by Hekta
The script throws a NullPointerException if the website does not exist, for example with:
http_request('https://www.googl.com', closure(msg(@arguments[0])))
2013-08-23 02:23:49 [SEVERE] at java.io.Reader.<init>(Unknown Source)
2013-08-23 02:23:49 [SEVERE] at java.io.InputStreamReader.<init>(Unknown Source)
2013-08-23 02:23:49 [SEVERE] at com.laytonsmith.PureUtilities.Web.WebUtility.GetPage(WebUtility.java:102)
2013-08-23 02:23:49 [SEVERE] at com.laytonsmith.core.functions.Web$http_request$2.run(Web.java:322)
2013-08-23 02:23:49 [SEVERE] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
2013-08-23 02:23:49 [SEVERE] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
2013-08-23 02:23:49 [SEVERE] at java.util.concurrent.FutureTask.run(Unknown Source)
2013-08-23 02:23:49 [SEVERE] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
2013-08-23 02:23:49 [SEVERE] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2013-08-23 02:23:49 [SEVERE] at java.lang.Thread.run(Unknown Source)```