Yesterday I made four shapefiles for SNAP using QGIS, all were made in the same way: make a line layer> fix geometries> convert to polygons> save as permanent shapefiles. Out of 4 files, 2 work just fine, no issue importing them. The other two throw out the following error message:
Failed to import vector data/ An I/O Error occurred: java.lang.NullPointerException
Short of starting from scratch with these two layers, I’m at a loss as to what to do, so any pointers would be appreciated.
Unfortunately the stack trace is printed, and it is not clear where and why this exception happens.
Theoretically, it should be printed when debug mode is enabled. Unfortunately, the enablement is not working in SNAP. org.esa.snap.core.util.Debug.setEnabled(boolean) is only called from PConvert and test code but not when SNAP or GPT is run. @diana_harosa@TomBlock I think this is something which should be corrected.
A simple fix could be to initialise the_enabled field like:
@Dan184 Have you checked to read the shapefiles into QGIS again? Is this working?
Can you tell where the geometries are located and provide the shapefiles?
The one could try it locally in the development environment and check what’s wrong.
@Marco_EOM I’ve just tried removing and re-reading the shapefiles into QGIS again, there seems to be no problem on the QGIS side as it works. I also tried re-creating the shapefile, same error again.