#5282 Use null session in referencing objects view
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / src / main / java / eu / etaxonomy / taxeditor / session / NullSession.java
index 9efd8ec423c075402ad20772a9fdf5accd24c930..22aa7bead5ce0c24fc607e48bee3e17aec5a5acc 100644 (file)
@@ -203,6 +203,9 @@ public class NullSession implements ICdmEntitySession {
      */
     @Override
     public List<String> getPropertyPaths(Object obj) {
+        if(sessionOwner == null) {
+            return null;
+        }
         Map<Object, List<String>> propertyPathsMap = sessionOwner.getPropertyPathsMap();
         if(propertyPathsMap == null || propertyPathsMap.isEmpty()) {
             return null;