mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
Merge pull request #311 from Parabot/bugfix/debug
[BUGFIX] Fixed null pointer on debug
This commit is contained in:
@@ -163,14 +163,7 @@ public final class ScriptSelector extends JFrame {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
String s = getScriptName(tree.getSelectionPath().toString());
|
||||
if (s != null) {
|
||||
try {
|
||||
WebUtil.getContents("http://bdn.parabot.org/api/v2/scripts/local", "script=" + URLEncoder.encode(s, "UTF-8") + "&username=" + URLEncoder.encode(Context.getUsername(), "UTF-8"));
|
||||
} catch (MalformedURLException | UnsupportedEncodingException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
runScript(format.get(s));
|
||||
}
|
||||
runScript(format.get(s));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user