Revision: 21337
          http://sourceforge.net/p/jmol/code/21337
Author:   hansonr
Date:     2017-01-24 14:22:21 +0000 (Tue, 24 Jan 2017)
Log Message:
-----------


Modified Paths:
--------------
    trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/JmolPanel.java

Modified: trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/JmolPanel.java
===================================================================
--- trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/JmolPanel.java    
2017-01-24 14:21:02 UTC (rev 21336)
+++ trunk/Jmol/src/org/openscience/jmol/app/jmolpanel/JmolPanel.java    
2017-01-24 14:22:21 UTC (rev 21337)
@@ -1180,8 +1180,11 @@
     if (nboDialog == null)
       nboDialog = (NBODialog) 
getInstanceWithParams("org.openscience.jmol.app.nbo.NBODialog",
           new Class[] { JFrame.class, Viewer.class }, frame, vwr );
-    if (nboDialog != null)
+    if (nboDialog == null) {
+      vwr.alert("The NBODialog class could not be found.");
+    } else {
       nboDialog.setVisible(true);
+    }
   }
 
   public static Object getInstanceWithParams(String name, Class<?>[] classes, 
Object... params) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to