mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 00:37:52 +00:00
[BUGFIX] Fixed null pointer on debug
This commit is contained in:
@@ -160,14 +160,7 @@ public final class ScriptSelector extends JFrame {
|
|||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
String s = getScriptName(tree.getSelectionPath().toString());
|
String s = getScriptName(tree.getSelectionPath().toString());
|
||||||
if (s != null) {
|
runScript(format.get(s));
|
||||||
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));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user