[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Sat Jun 16 00:26:38 UTC 2007
gordonp
Fri Jun 15 20:26:38 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util
In directory dev.open-bio.org:/tmp/cvs-serv29185/src/main/ca/ucalgary/seahawk/util
Modified Files:
SeahawkOptions.java
Log Message:
Added check for null registry when saving preferences
moby-live/Java/src/main/ca/ucalgary/seahawk/util SeahawkOptions.java,1.3,1.4
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/SeahawkOptions.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/SeahawkOptions.java 2007/06/09 22:00:27 1.3
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/SeahawkOptions.java 2007/06/16 00:26:38 1.4
@@ -213,9 +213,11 @@
properties.setProperty(CACHE_POLICY_PROP, ""+cacheExpiryInHours);
properties.setProperty(REFERRER_POLICY_PROP, ""+referrerPolicy);
properties.setProperty(TEMP_DIR_PROP, tmpDir.getCanonicalFile().getPath());
- properties.setProperty(REGISTRY_SYNONYM_PROP, registry.getSynonym());
- properties.setProperty(REGISTRY_ENDPOINT_PROP, registry.getEndpoint());
- properties.setProperty(REGISTRY_NAMESPACE_PROP, registry.getNamespace());
+ if(registry != null){
+ properties.setProperty(REGISTRY_SYNONYM_PROP, registry.getSynonym());
+ properties.setProperty(REGISTRY_ENDPOINT_PROP, registry.getEndpoint());
+ properties.setProperty(REGISTRY_NAMESPACE_PROP, registry.getNamespace());
+ }
properties.storeToXML(os,
PROPS_FILE_COMMENT,
More information about the MOBY-guts
mailing list