mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-25 12:25:33 +00:00
avoid throwing EmptyStackExceptions in as2 deobfuscation
This commit is contained in:
@@ -499,18 +499,18 @@ public class ProxyFrame extends AppFrame implements CatchedListener, MouseListen
|
||||
|
||||
private void copyUrlButtonActionPerformed(ActionEvent evt) {
|
||||
int[] sel = getSelectedRows();
|
||||
String copyText = "";
|
||||
StringBuilder copyText = new StringBuilder();
|
||||
for (int sc : sel) {
|
||||
Replacement r = replacements.get(sc);
|
||||
if (!copyText.isEmpty()) {
|
||||
copyText += System.lineSeparator();
|
||||
if (copyText.length() > 0) {
|
||||
copyText.append(System.lineSeparator());
|
||||
}
|
||||
copyText += r.urlPattern;
|
||||
copyText.append(r.urlPattern);
|
||||
}
|
||||
|
||||
if (!copyText.isEmpty()) {
|
||||
if (copyText.length() > 0) {
|
||||
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
|
||||
StringSelection stringSelection = new StringSelection(copyText);
|
||||
StringSelection stringSelection = new StringSelection(copyText.toString());
|
||||
clipboard.setContents(stringSelection, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user