gephi/trunk — Issue #234: Error when importing nodes with empty labels in NET format
Author: mbastian
Created: 2011-10-22 16:44:15+00:00
State: open
Labels: Fix Released, Low, pajek

An exception is thrown on importing Pajek NET format with empty labels like below:

*Vertices 141
1 "Label A"
2 ""
3 "Label B"

Stack trace:
java.lang.ArrayIndexOutOfBoundsException: 1
at org.gephi.io.importer.plugin.file.ImporterPajek.readVertex(ImporterPajek.java:167)
at org.gephi.io.importer.plugin.file.ImporterPajek.importData(ImporterPajek.java:126)
Caused: java.lang.RuntimeException
at org.gephi.io.importer.plugin.file.ImporterPajek.importData(ImporterPajek.java:149)
at org.gephi.io.importer.plugin.file.ImporterPajek.importData(ImporterPajek.java:63)
at org.gephi.desktop.importer.DesktopImportController$4.run(DesktopImportController.java:214)
at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:228)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)