summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-08-11 11:24:13 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-08-11 11:24:13 +0000
commit897621b3882414ff65c5a07c1a3f11758f183995 (patch)
treedc5589bb8e1bcdfdcb0188a63f948d6cdb55564d /java/sca
parent14cf33d0e65e119a38bb84fcf2738ee3d18c4aab (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.java3
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 {