divergentdave
New member
I recently uninstalled and reinstalled browsers and my relay browser button quit working.
I loaded up KoLmafia (14.1) in jdb, and started stepping through BrowserLauncher.openURL(). It looks like the issue is line 908.
Line 908 throws a NullPointerException, which is uncaught and bubbles on out. I ran the command specified above,
and it didn't print anything to stdout, (hence the null pointer) but it did print "File association not found for extension .html" to stderr. I'm not sure why assoc says what it does, because when I double click on an .html file, Firefox opens up just fine.
At any rate, I would recommend replacing line 908 with the following.
Hope this helps, and thanks to all the devs for your hard work.
I loaded up KoLmafia (14.1) in jdb, and started stepping through BrowserLauncher.openURL(). It looks like the issue is line 908.
Code:
usingIE = stream.readLine().indexOf( "htmlfile" ) != -1;
Code:
cmd.exe /c assoc .html
At any rate, I would recommend replacing line 908 with the following.
Code:
String line = stream.readLine();
usingIE = (line != null) && (line.indexOf("htmlfile") != -1);
Hope this helps, and thanks to all the devs for your hard work.