Branch: refs/heads/main
Home: https://github.com/openjump-gis/openjump
Commit: effcbdb02e0542ac6d98d747aac817f5615312f3
https://github.com/openjump-gis/openjump/commit/effcbdb02e0542ac6d98d747aac817f5615312f3
Author: ede <[email protected]>
Date: 2021-06-01 (Tue, 01 Jun 2021)
Changed paths:
M src/com/vividsolutions/jump/workbench/datastore/ConnectionManager.java
Log Message:
-----------
Enhance robustness against an NPE reported by Jukka
At the moment I cannot open any new data into OpenJUMP. Pressing the
Open… button gave just NPE. I believe that OpenJUMP tries to open the
previously used database connection but for some reason the connection
is not available. I will close and restart OJ but before that I copy the
exception at the bottom.
Now after restart I cannot tell what happened or how to repeat the
error. PostGIS is alive and Spatialite databases can be found.
The error was:
java.lang.NullPointerException
at
com.vividsolutions.jump.workbench.datastore.ConnectionManager.getLayersUsing(ConnectionManager.java:294)
at
com.vividsolutions.jump.workbench.datastore.ConnectionManager.closeConnectionsUnused(ConnectionManager.java:237)
at
com.vividsolutions.jump.workbench.ui.plugin.datastore.ConnectionPanel.closeConnectionsUnused(ConnectionPanel.java:87)
at
org.openjump.core.ui.plugin.datastore.AddDataStoreLayerWizardPanel.exitingToLeft(AddDataStoreLayerWizardPanel.java:37)
at
com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.setCurrentWizardPanel(WizardDialog.java:125)
at
com.vividsolutions.jump.workbench.ui.wizard.WizardDialog.setCurrentWizardPanel(WizardDialog.java:141)
at
org.openjump.core.ui.swing.wizard.WizardGroupDialog.initSelectedWizard(WizardGroupDialog.java:86)
at
org.openjump.core.ui.swing.wizard.WizardGroupDialog.setSelectedWizard(WizardGroupDialog.java:97)
at
org.openjump.core.ui.plugin.file.OpenWizardPlugIn.execute(OpenWizardPlugIn.java:91)
SNIP
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel