ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/client/Register.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/Register.java (file contents):
Revision 1.14 by ajm, Wed Mar 21 23:54:31 2001 UTC vs.
Revision 1.15 by ajm, Thu Mar 22 00:31:24 2001 UTC

# Line 185 | Line 185 | public class Register {
185          // -1.0 means we don't use an alert level
186          double threshold = -1.0;
187          try {
188 <            String thresholdString = getThresholdConfig(level, _attributeName);
188 >            String thresholdString = "";
189 >            try {
190 >                thresholdString = getThresholdConfig(level, _attributeName);
191 >            } catch (PropertyNotFoundException e) {
192 >                thresholdString = getThresholdConfig(level, null);
193 >            }
194              threshold = Double.parseDouble(thresholdString);
195          } catch (PropertyNotFoundException e) {
196              threshold = -1.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines