CC: Tweaked

CC: Tweaked

42M Downloads

HTTP throws NPEs on some malformed URLs

SquidDev opened this issue ยท 0 comments

commented

Useful information to include:

  • Minecraft version: 1.12, but technically only tested in CCEmuX.
  • CC: Tweaked version: 1.81.1
lua> http.checkURL("http:google.com")
Java Exception Thrown: java.lang.NullPointerException

Obviously this is a malformed URL so you'd expect an error, but we really shouldn't be throwing an NPE. Might be kinda fun to do some fuzzing here to find any other cases which produce unexpected results.