diff --git a/src/helma/framework/core/Session.java b/src/helma/framework/core/Session.java index e9e26714..2d8bf3e8 100644 --- a/src/helma/framework/core/Session.java +++ b/src/helma/framework/core/Session.java @@ -336,17 +336,11 @@ public class Session implements Serializable { } protected UploadStatus getUpload(String uploadId) { - UploadStatus status = null; if (uploads == null) { - uploads = new HashMap(); + return null; } else { - status = (UploadStatus) uploads.get(uploadId); + return (UploadStatus) uploads.get(uploadId); } - if (status == null) { - status = new UploadStatus(); - uploads.put(uploadId, status); - } - return status; } protected void pruneUploads() {