Author: michiel
Date: 2009-05-18 14:16:29 +0200 (Mon, 18 May 2009)
New Revision: 35254
Modified:
mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/NodeReferrerTag.java
Log:
If for some reason the nodeprovider provided null (which is allowd with the
attribute 'notfound', then don't NPE the implicit parameters
Modified:
mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/NodeReferrerTag.java
===================================================================
---
mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/NodeReferrerTag.java
2009-05-18 12:16:04 UTC (rev 35253)
+++
mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/NodeReferrerTag.java
2009-05-18 12:16:29 UTC (rev 35254)
@@ -145,9 +145,13 @@
NodeProvider np = findNodeProvider(false);
if (np != null) {
Node node = np.getNodeVar();
- Cloud cloud = node.getCloud();
- p.setIfDefined(Parameter.CLOUD, cloud);
- p.setIfDefined(Parameter.USER, cloud.getUser());
+ if (node != null) {
+ Cloud cloud = node.getCloud();
+ p.setIfDefined(Parameter.CLOUD, cloud);
+ p.setIfDefined(Parameter.USER, cloud.getUser());
+ } else {
+ log.warn("Node provider " + np + " provided null");
+ }
}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs