问题描述:

Why do I get an NullPointerException error when I try to open a file for reading when using gephi 0.9.1?

try

{

File file = new File(getClass().getResource("series.gexf").toURI());

container4 = importController.importFile(file);

container4.getLoader().setEdgeDefault(EdgeDirectionDefault.DIRECTED);

container4.getLoader().setAllowAutoNode(false);

}

catch (Exception ex)

{

ex.printStackTrace();

return;

}

相关阅读:
Top