Hi there,
I am working with latest Apsose.Diagram version 6.3.0 to create a VSDX file from scratch but get NullPointerException following:
Exception in thread “main” java.lang.NullPointerException
at com.aspose.diagram.gz.k(Unknown Source)
at com.aspose.diagram.gz.a(Unknown Source)
at com.aspose.diagram.gx.c(Unknown Source)
at com.aspose.diagram.gx.a(Unknown Source)
at com.aspose.diagram.je.q(Unknown Source)
at com.aspose.diagram.je.a(Unknown Source)
at com.aspose.diagram.jd.a(Unknown Source)
at com.aspose.diagram.ew.save(Unknown Source)
at com.aspose.diagram.jy.b(Unknown Source)
at com.aspose.diagram.Diagram.a(Unknown Source)
at com.aspose.diagram.Diagram.save(Unknown Source)
at com.att.cemp.visio.aspose.TestVisioCreator.main(TestVisioCreator.java:75)
I only develop a very simple program follows this sample https://github.com/aspose-diagram/Aspose.Diagram-for-Java/blob/master/Examples/src/main/java/com/aspose/diagram/examples/Diagrams/CreateDiagram.java as:
public static void main(String[] args) throws Exception {
Diagram diagram = new Diagram();
// save in the VSDX format
diagram.save(“C:\Users\chaunph1\Desktop\test\output\sample-generated.vsdx”, SaveFileFormat.VSDX);
}
Please help solve this problem, I need to prove with my manager the API is strong enough to deal with our current needs, then we could proceed purchasing.
Thanks and Regards,
Chau