Changeset 338:5647a31709fe
- Timestamp:
- 09/10/09 15:40:40 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@339
- Message:
-
fixed NPE in certain cases
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r232
|
r338
|
|
| 88 | 88 | if (task == null || task.equals("all") || task.equals("observers")) { |
| 89 | 89 | |
| 90 | | if (!Framework.isUcnInitialized && task.equals("observers")) { |
| | 90 | if (!Framework.isUcnInitialized && task != null && task.equals("observers")) { |
| 91 | 91 | out.write("Unable to reload the observers because Unicorn is not initialized.\n" + |
| 92 | 92 | "You should initialize Unicorn fully and successfully one time before trying to perform this task (/init?task=all)."); |
| … |
… |
|
| 110 | 110 | if (task == null || task.equals("all") || task.equals("tasklist")) { |
| 111 | 111 | |
| 112 | | if (!Framework.isUcnInitialized && task.equals("tasklist")) { |
| | 112 | if (!Framework.isUcnInitialized && task != null && task.equals("tasklist")) { |
| 113 | 113 | out.write("Unable to reload the tasklist because Unicorn is not initialized.\n" + |
| 114 | 114 | "You should initialize Unicorn fully and successfully one time before trying to perform this task (/init?task=all)."); |
| … |
… |
|
| 132 | 132 | if (task == null || task.equals("all") || task.equals("language")) { |
| 133 | 133 | |
| 134 | | if (!Framework.isUcnInitialized && task.equals("language")) { |
| | 134 | if (!Framework.isUcnInitialized && task != null && task.equals("language")) { |
| 135 | 135 | out.write("Unable to reload the language files because Unicorn is not initialized.\n" + |
| 136 | 136 | "You should initialize Unicorn fully and successfully one time before trying to perform this task (/init?task=all)."); |