fix error in developer code

This commit is contained in:
Peter Hormanns 2012-07-19 16:30:28 +00:00
parent f05becdca6
commit ae8b6b8965

View File

@ -52,7 +52,7 @@ public class RemoteCASHelper {
} }
public String getServiceTicket(String location, String service) { public String getServiceTicket(String location, String service) {
if (location.startsWith("granting:")) { if (location != null && location.startsWith("granting:")) {
return "user:" + location.substring(9); return "user:" + location.substring(9);
} }
try { try {