Author: ruschein
Date: 2010-07-16 15:11:34 -0700 (Fri, 16 Jul 2010)
New Revision: 20952

Modified:
   
coreplugins/trunk/NCBIClient/src/edu/ucsd/bioeng/idekerlab/ncbiclient/NCBIClient.java
Log:
Fixed a null-pointer exception.

Modified: 
coreplugins/trunk/NCBIClient/src/edu/ucsd/bioeng/idekerlab/ncbiclient/NCBIClient.java
===================================================================
--- 
coreplugins/trunk/NCBIClient/src/edu/ucsd/bioeng/idekerlab/ncbiclient/NCBIClient.java
       2010-07-16 20:24:41 UTC (rev 20951)
+++ 
coreplugins/trunk/NCBIClient/src/edu/ucsd/bioeng/idekerlab/ncbiclient/NCBIClient.java
       2010-07-16 22:11:34 UTC (rev 20952)
@@ -299,8 +299,8 @@
                        return;
                }
 
-               int resSize = Integer.parseInt(result.getCount());
-               System.out.println("Number of Result from Entrez Gene = " + 
resSize);
+               final String count = result.getCount();
+               final int resSize = (count == null) ? 0 : 
Integer.parseInt(count);
 
                if (e.getNextMove() != null) {
                        
Cytoscape.firePropertyChange(WSResponseType.SEARCH_FINISHED

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