Skip to content

Commit f59744e

Browse files
committed
Fixed bug processing empty strings in the setPath() method in ServiceRequest
1 parent b0870d6 commit f59744e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/javaxt/express/ServiceRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public void setPath(String path){
255255
//in the path. Example: "GET /config/users" would yield the "getUsers"
256256
//from the "config" service.
257257
String name = getPath(0).toString();
258-
if (name!=null){
258+
if (name!=null && name.length()>0){
259259
name = name.substring(0, 1).toUpperCase() + name.substring(1);
260260

261261
if (readOnly){

0 commit comments

Comments
 (0)