JAL-1528 NullPointer check / more informative PDB fetch status bar
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 26 Nov 2014 14:26:39 +0000 (14:26 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 26 Nov 2014 14:26:39 +0000 (14:26 +0000)
src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java
src/jalview/gui/ChimeraViewFrame.java

index fb03f04..0042041 100644 (file)
@@ -782,7 +782,7 @@ public abstract class JalviewChimeraBinding extends
 
   private void waitForChimera()
   {
-    while (viewer.isBusy())
+    while (viewer != null && viewer.isBusy())
     {
       try {
         Thread.sleep(15);
index 02865e1..513659f 100644 (file)
@@ -840,8 +840,13 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable,
     {
       if (progressBar != null)
       {
-        progressBar.setProgressBar(
-                MessageManager.getString("label.state_completed"), hdl);
+        progressBar
+                .setProgressBar(
+                        pdbid
+                                + " "
+                                + MessageManager
+                                        .getString("label.state_completed"),
+                        hdl);
       }
     }
     /*