diff options
author | Jiri Vanek <[email protected]> | 2013-01-30 17:44:44 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-01-30 17:44:44 +0100 |
commit | e2959ae96078602cf8b964a62bf454b364129c08 (patch) | |
tree | 6404ed854bc84db048a7405a960442b9432fb566 /netx/net/sourceforge/jnlp | |
parent | c06c5ab6dc8a8aa1b41af190188d1de99345810f (diff) |
Iteration over launchExceptionChain done by pointer/get instead by iterator to prevent ConcurrentModificationException.
Diffstat (limited to 'netx/net/sourceforge/jnlp')
-rw-r--r-- | netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java b/netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java index dbd860e..5d1e349 100644 --- a/netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java +++ b/netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java @@ -387,10 +387,9 @@ public class JEditorPaneBasedExceptionDialog extends JDialog implements Hyperlin private static String getChainAsString(List<LaunchException.LaunchExceptionWithStamp> launchExceptionChain, boolean formatTime) { String s = ""; if (launchExceptionChain != null) { - int i = 0; - for (LaunchException.LaunchExceptionWithStamp launchException : launchExceptionChain) { - i++; - s = s + i + ") at " + formatTime(launchException.getStamp(), formatTime) + "\n" + getExceptionStackTraceAsString(launchException.getEx()); + for (int i = 0; i < launchExceptionChain.size(); i++) { + LaunchException.LaunchExceptionWithStamp launchException = launchExceptionChain.get(i); + s = s + (i+1) + ") at " + formatTime(launchException.getStamp(), formatTime) + "\n" + getExceptionStackTraceAsString(launchException.getEx()); } } return s; |