Changeset 1873
- Timestamp:
- 02/13/15 10:09:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/Event.java
r996 r1873 81 81 * </p> 82 82 */ 83 private Map<String, String> parameters = new HashMap<String, String>();83 private Map<String, String> parameters; 84 84 85 85 /** … … 90 90 * </p> 91 91 */ 92 private List<IReplayable> replay = new LinkedList<IReplayable>();92 private List<IReplayable> replay; 93 93 94 94 /** … … 250 250 throw new IllegalArgumentException("replayble must not be null"); 251 251 } 252 253 if (replay == null) { 254 replay = new LinkedList<IReplayable>(); 255 } 256 252 257 replay.add(replayable); 253 258 } … … 267 272 throw new IllegalArgumentException("generatedReplaySeq must not be null"); 268 273 } 274 275 if (replay == null) { 276 replay = new LinkedList<IReplayable>(); 277 } 278 269 279 replay.addAll(generatedReplaySeq); 270 280 } … … 288 298 } 289 299 300 if (parameters == null) { 301 parameters = new HashMap<String, String>(); 302 } 303 290 304 if (value == null) { 291 305 parameters.remove(key); … … 315 329 } 316 330 317 return parameters.get(key); 331 if (parameters != null) { 332 return parameters.get(key); 333 } 334 else { 335 return null; 336 } 318 337 } 319 338 … … 354 373 */ 355 374 public List<IReplayable> getReplayables() { 356 return new LinkedList<IReplayable>(replay); 375 if (replay != null) { 376 return new LinkedList<IReplayable>(replay); 377 } 378 else { 379 return new LinkedList<IReplayable>(); 380 } 357 381 } 358 382 }
Note: See TracChangeset
for help on using the changeset viewer.