You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:19:40 UTC
[sling-org-apache-sling-bundleresource-impl] 23/30: SLING-1733 -
fix potential ClassCastException
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.bundleresource.impl-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-bundleresource-impl.git
commit 41e931ecf855ff08863a6e2dcb85a0e530e3d91b
Author: Eric Norman <en...@apache.org>
AuthorDate: Thu Sep 9 05:34:32 2010 +0000
SLING-1733 - fix potential ClassCastException
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/bundleresource@995316 13f79535-47bb-0310-9956-ffa450edef68
---
.../org/apache/sling/bundleresource/impl/BundleResourceProvider.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceProvider.java b/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceProvider.java
index 72870b6..c40222e 100644
--- a/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceProvider.java
+++ b/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceProvider.java
@@ -114,7 +114,7 @@ public class BundleResourceProvider implements ResourceProvider {
public Iterator<Resource> listChildren(final Resource parent)
throws SlingException {
- if (((BundleResource)parent).getBundle() == this.bundle) {
+ if (parent instanceof BundleResource && ((BundleResource)parent).getBundle() == this.bundle) {
// bundle resources can handle this request directly when the parent
// resource is in the same bundle as this provider.
return ((BundleResource) parent).listChildren();
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.