Author: pwang
Date: 2009-03-30 10:19:44 -0700 (Mon, 30 Mar 2009)
New Revision: 16353

Modified:
   
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/InstallNewSoftwarePanel.java
Log:
Fixed NullPointerException, Add null pointer check for selection, 

Modified: 
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/InstallNewSoftwarePanel.java
===================================================================
--- 
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/InstallNewSoftwarePanel.java
  2009-03-27 16:00:48 UTC (rev 16352)
+++ 
csplugins/trunk/ucsd/pwang/cyprovision/org.eclipse.equinox.p2.ui2/src/org/eclipse/equinox/internal/provisional/p2/ui2/dialogs/InstallNewSoftwarePanel.java
  2009-03-30 17:19:44 UTC (rev 16353)
@@ -139,6 +139,11 @@
                                JTree theTree =  (JTree) tse.getSource();
                                TreePath[] selectedPaths = 
theTree.getSelectionPaths();
                                
+                               if (selectedPaths == null){
+                                       taDetails.setText("");
+                                       return;
+                               }
+                               
                                if (selectedPaths.length == 1){
                                        TreePath thePath = selectedPaths[0];
                                        DefaultMutableTreeNode theNode = 
(DefaultMutableTreeNode) thePath.getLastPathComponent();


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to