Revision: 5918
          http://sourceforge.net/p/jump-pilot/code/5918
Author:   michaudm
Date:     2018-08-21 20:33:57 +0000 (Tue, 21 Aug 2018)
Log Message:
-----------
Protection against NPE

Modified Paths:
--------------
    
core/trunk/src/org/openjump/core/ui/plugin/datastore/transaction/DataStoreTransactionManagerPlugIn.java

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/datastore/transaction/DataStoreTransactionManagerPlugIn.java
===================================================================
--- 
core/trunk/src/org/openjump/core/ui/plugin/datastore/transaction/DataStoreTransactionManagerPlugIn.java
     2018-08-19 07:27:05 UTC (rev 5917)
+++ 
core/trunk/src/org/openjump/core/ui/plugin/datastore/transaction/DataStoreTransactionManagerPlugIn.java
     2018-08-21 20:33:57 UTC (rev 5918)
@@ -82,7 +82,8 @@
                 Logger.info("Task loaded : " + task.getName());
                 java.util.List<Layer> layers = 
taskEvent.getTask().getLayerManager().getLayers();
                 for (Layer layer : layers) {
-                    if (layer.getDataSourceQuery().getDataSource() instanceof 
WritableDataStoreDataSource) {
+                    if (layer.getDataSourceQuery() != null &&
+                            layer.getDataSourceQuery().getDataSource() 
instanceof WritableDataStoreDataSource) {
                         getTransactionManager().registerLayer(layer, task);
                     }
                 }


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to