diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-11 11:24:13 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-11 11:24:13 +0000 |
commit | 897621b3882414ff65c5a07c1a3f11758f183995 (patch) | |
tree | dc5589bb8e1bcdfdcb0188a63f948d6cdb55564d /java/sca | |
parent | 14cf33d0e65e119a38bb84fcf2738ee3d18c4aab (diff) |
Add error check to give better than just NPE
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@803064 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r-- | java/sca/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/jsp/ReferenceTag.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/sca/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/jsp/ReferenceTag.java b/java/sca/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/jsp/ReferenceTag.java index 46c5b89459..b4655e3d95 100644 --- a/java/sca/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/jsp/ReferenceTag.java +++ b/java/sca/modules/implementation-web-runtime/src/main/java/org/apache/tuscany/sca/implementation/web/runtime/jsp/ReferenceTag.java @@ -50,6 +50,9 @@ public class ReferenceTag extends TagSupport { ServletContext servletContext = pageContext.getServletContext(); RuntimeComponent component = (RuntimeComponent)servletContext.getAttribute("org.apache.tuscany.sca.implementation.web.RuntimeComponent"); + if (component == null) { + throw new JspException("No Web component found. Is there an <implementation.web> missing?"); + } Class<?> typeClass; try { |