<p>I'm trying to stringify my gene network in Cytoscape and have designated a column with uniprot IDs for the basis of the search. Not every gene has a uniprot ID but I have selected to retain genes without them. For some reason I am unable to execute this function and receive  the feedback:</p>
<p>&quot;Stringify network
 Cannot invoke &quot;Object.toString()&quot; because the return value of &quot;java.util.List.get(int)&quot; is null&quot;</p>
<p>I have verified the uniprot IDs are correct and exist with singular matches to the database, could anyone give insight into how I might overcome this issue?</p>

CC BY-SA 4.0
2024-08-07T20:52:46.593Z
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
Community
CC BY-SA 4.0
2024-08-08T03:29:40.183Z
Could you provide a backtrace when you get this error?  You can get it by running Cytoscape from a command shell, but you can also get provide the backtrace that shows up in your CytoscapeConfiguration/3/framework-cytoscape.log  That will help us figure out exactly where the problem is.
Scooter Morris
<gene><uniprot><cytoscape><java><biostrings>
Cannot invoke "Object.toString()" but Uniprot IDs are there
# Cannot invoke "Object.toString()" but Uniprot IDs are there

(Asked by: username_0 on 2024-08-07)

I'm trying to stringify my gene network in Cytoscape and have designated a column with uniprot IDs for the basis of the search. Not every gene has a uniprot ID but I have selected to retain genes without them. For some reason I am unable to execute this function and receive the feedback:

"Stringify network
 Cannot invoke "Object.toString()" because the return value of "java.util.List.get(int)" is null"

I have verified the uniprot IDs are correct and exist with singular matches to the database, could anyone give insight into how I might overcome this issue?

**Tags:** gene, uniprot, cytoscape, java, biostrings
> **Comments:**
> **username_1**: Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.  
> **username_2**: Could you provide a backtrace when you get this error?  You can get it by running Cytoscape from a command shell, but you can also get provide the backtrace that shows up in your CytoscapeConfiguration/3/framework-cytoscape.log  That will help us figure out exactly where the problem is.  

---

## 0 answers

