[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Feb 14 05:35:52 UTC 2008


gordonp
Thu Feb 14 00:35:52 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services
In directory dev.open-bio.org:/tmp/cvs-serv22118/src/main/ca/ucalgary/services

Modified Files:
	CGIService.java 
Log Message:
Avoid null exception if getting CoC param before init() is called
moby-live/Java/src/main/ca/ucalgary/services CGIService.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/CGIService.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/CGIService.java	2008/02/14 03:04:44	1.2
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/services/CGIService.java	2008/02/14 05:35:52	1.3
@@ -267,7 +267,7 @@
 
     protected String getCoCInitParameter(String paramName){
 	javax.servlet.ServletConfig config = getServletConfig();
-	if(cgiConfig.containsKey(paramName)){
+	if(cgiConfig != null && cgiConfig.containsKey(paramName)){
 	    return cgiConfig.get(paramName);
 	}
 	return super.getCoCInitParameter(paramName);




More information about the MOBY-guts mailing list