Skip to content

Commit e455716

Browse files
committed
Safety measure for possible case of getPathInfo() returning 'null'
See: https://groups.google.com/forum/#!topic/pivot4j-list/g-ZTasW2aRg
1 parent 94861a3 commit e455716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pivot4j-pentaho/src/main/java/org/pivot4j/pentaho/servlet/PluginServletRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public String getServletPath() {
6161
public String getPathInfo() {
6262
String pathInfo = super.getPathInfo();
6363

64-
if (pathInfo.startsWith(SERVLET_PATH)) {
64+
if (pathInfo != null && pathInfo.startsWith(SERVLET_PATH)) {
6565
pathInfo = pathInfo.substring(SERVLET_PATH.length());
6666
}
6767

0 commit comments

Comments
 (0)