Author: pwang
Date: 2011-03-28 16:56:21 -0700 (Mon, 28 Mar 2011)
New Revision: 24603

Modified:
   
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
Log:
Fixed a null pointer exception

Modified: 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
===================================================================
--- 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
     2011-03-28 23:40:52 UTC (rev 24602)
+++ 
core3/table-import-impl/trunk/src/main/java/org/cytoscape/tableimport/internal/ui/ImportTablePanel.java
     2011-03-28 23:56:21 UTC (rev 24603)
@@ -2280,17 +2280,17 @@
        
        private void displayPreview() throws IOException {
                final String selectedSourceName;
-               final URL sourceURL;
+               //final URL sourceURL;
 
                if (dialogType == ONTOLOGY_AND_ANNOTATION_IMPORT) {
                        selectedSourceName = 
annotationComboBox.getSelectedItem().toString();
-                       sourceURL = new 
URL(annotationUrlMap.get(selectedSourceName));
+                       //sourceURL = new 
URL(annotationUrlMap.get(selectedSourceName));
                } else {
                        selectedSourceName = 
targetDataSourceTextField.getText();
-                       sourceURL = new URL(selectedSourceName);
+                       //sourceURL = new URL(selectedSourceName);
                }
 
-               readAnnotationForPreview(sourceURL, checkDelimiter());
+               readAnnotationForPreview(null, checkDelimiter());
                previewPanel.repaint();
        }
 

-- 
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