Author: snoopdave
Date: Mon Mar 13 11:37:14 2006
New Revision: 385632
URL: http://svn.apache.org/viewcvs?rev=385632&view=rev
Log:
Oracle compatibility fix for ROL-927
Modified:
incubator/roller/trunk/src/org/roller/presentation/website/actions/RollerPropertiesAction.java
Modified:
incubator/roller/trunk/src/org/roller/presentation/website/actions/RollerPropertiesAction.java
URL:
http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/presentation/website/actions/RollerPropertiesAction.java?rev=385632&r1=385631&r2=385632&view=diff
==============================================================================
---
incubator/roller/trunk/src/org/roller/presentation/website/actions/RollerPropertiesAction.java
(original)
+++
incubator/roller/trunk/src/org/roller/presentation/website/actions/RollerPropertiesAction.java
Mon Mar 13 11:37:14 2006
@@ -141,8 +141,8 @@
// this is a bit hacky since we are assuming that any prop
// with a value of "true" or "false" is meant to be a
boolean
// it may not always be the case, but we should be okay
for now
- if(updProp.getValue().equals("true") ||
- updProp.getValue().equals("false")) {
+ if( updProp.getValue() != null // null check needed
w/Oracle
+ && (updProp.getValue().equals("true") ||
updProp.getValue().equals("false"))) {
if(incomingProp == null || !incomingProp.equals("on"))
incomingProp = "false";