git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86eca99
)
JAL-653 JAL-966 TODO and avoid NPE when desktop instance unavailable
author
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 19 Feb 2015 14:57:01 +0000
(14:57 +0000)
committer
James Procter
<jprocter@ls30857.local>
Fri, 5 Jun 2015 11:55:27 +0000
(12:55 +0100)
src/jalview/io/FileLoader.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/FileLoader.java
b/src/jalview/io/FileLoader.java
index
6329f58
..
aa76da5
100755
(executable)
--- a/
src/jalview/io/FileLoader.java
+++ b/
src/jalview/io/FileLoader.java
@@
-384,7
+384,9
@@
public class FileLoader implements Runnable
final String errorMessage = "Couldn't load file " + title + "\n"
+ error;
- if (raiseGUI)
+ // TODO: refactor FileLoader to be independent of Desktop / Applet GUI
+ // bits ?
+ if (raiseGUI && Desktop.desktop != null)
{
javax.swing.SwingUtilities.invokeLater(new Runnable()
{