\r
public void run()\r
{\r
- Desktop.instance.startLoading(file);\r
+ if (Desktop.instance != null)\r
+ Desktop.instance.startLoading(file);\r
\r
SequenceI[] sequences = null;\r
\r
}\r
else\r
{\r
- Desktop.instance.stopLoading();\r
+ if (Desktop.instance != null)\r
+ Desktop.instance.stopLoading();\r
\r
JOptionPane.showInternalMessageDialog(Desktop.desktop,\r
"Couldn't load file " + file +\r
updateRecentlyOpened();\r
}\r
\r
- Desktop.instance.stopLoading();\r
+ if (Desktop.instance != null)\r
+ Desktop.instance.stopLoading();\r
\r
}\r
}\r