From b783016a6b49e958d624866086b0cb72b41d31ea Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 5 Jun 2007 18:27:21 +0000 Subject: [PATCH] * Don't make session.getUpload() create a new UploadStatus instance. --- src/helma/framework/core/Session.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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() {