If there's a bad line in an enrichment file this happens...
If its just a blank line then it should be ignored.
If its actually a badly formatted line then give the user a better error message!
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at org.baderlab.csplugins.enrichmentmap.parsers.ParseGenericEnrichmentResults.parse(ParseGenericEnrichmentResults.java:79)
at org.baderlab.csplugins.enrichmentmap.parsers.ParseGenericEnrichmentResults.run(ParseGenericEnrichmentResults.java:34)
at org.cytoscape.work.internal.task.JDialogTaskManager$TaskRunnable.innerRun(JDialogTaskManager.java:337)
at org.cytoscape.work.internal.task.JDialogTaskManager$TaskRunnable.run(JDialogTaskManager.java:352)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
The error message now reports the file and line number where the parsing error occurred.
Also blank lines are skipped so if the file ends with a blank line that's now ignored.
If there's a bad line in an enrichment file this happens...
If its just a blank line then it should be ignored. If its actually a badly formatted line then give the user a better error message!