Author: ehillenius
Date: Mon Mar 12 14:10:29 2007
New Revision: 517396

URL: http://svn.apache.org/viewvc?view=rev&rev=517396
Log:
throw exception with more info which would otherwise be a NPE

Modified:
    
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessor.java

Modified: 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessor.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessor.java?view=diff&rev=517396&r1=517395&r2=517396
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessor.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessor.java
 Mon Mar 12 14:10:29 2007
@@ -120,6 +120,14 @@
                                }
                        }
 
+                       if (component == null)
+                       {
+                               // still null? that's not right
+                               throw new WicketRuntimeException("cannot 
resolve component with path '"
+                                               + pageRelativeComponentPath + 
"', listener " + listener + " on page "
+                                               + page);
+                       }
+
                        if (!component.isEnableAllowed())
                        {
                                throw new 
UnauthorizedActionException(component, Component.ENABLE);


Reply via email to