mbien commented on PR #5530:
URL: https://github.com/apache/netbeans/pull/5530#issuecomment-1442056656

   @matthiasblaesing wow. Yeah this works too. I somehow never realized that 
this was a combo box with other options than file names - everything makes 
sense now.
   
   I noticed that it is currently fairly easy to make NB throw exceptions while 
trying to open random resources in the web browser.
   
   example:
    - http://127.0.0.1:8082/resource
   ```
   java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" 
because "pi" is null
        
org.netbeans.modules.httpserver.WrapperServlet.getRequestURL(WrapperServlet.java:111)
        
org.netbeans.modules.httpserver.WrapperServlet.processRequest(WrapperServlet.java:66)
        
org.netbeans.modules.httpserver.WrapperServlet.doGet(WrapperServlet.java:52)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:497)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:584)
   ...
   ```
    - http://127.0.0.1:8082/resource/
   ```
    java.lang.IllegalArgumentException: URI is not absolute
        java.base/java.net.URL.fromURI(URL.java:722)
        java.base/java.net.URI.toURL(URI.java:1136)
        
org.netbeans.modules.httpserver.WrapperServlet.getRequestURL(WrapperServlet.java:115)
        
org.netbeans.modules.httpserver.WrapperServlet.processRequest(WrapperServlet.java:66)
        
org.netbeans.modules.httpserver.WrapperServlet.doGet(WrapperServlet.java:52)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:497)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:584)
   ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to