From 38b220eda9811ea0769a45a36559ccaf477f702a Mon Sep 17 00:00:00 2001 From: LiuShilin <503233512@qq.com> Date: Tue, 21 Mar 2017 12:21:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=BA=9B=E4=B8=9C?= =?UTF-8?q?=E8=A5=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lzy/imagepicker/DataHolder.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/imagepicker/src/main/java/com/lzy/imagepicker/DataHolder.java b/imagepicker/src/main/java/com/lzy/imagepicker/DataHolder.java index 3512428..f98857c 100644 --- a/imagepicker/src/main/java/com/lzy/imagepicker/DataHolder.java +++ b/imagepicker/src/main/java/com/lzy/imagepicker/DataHolder.java @@ -45,10 +45,6 @@ public Object retrieve(String id) { if (data == null || mInstance == null){ throw new RuntimeException("你必须先初始化"); } - List objectWeakReference = data.get(id); - if (objectWeakReference == null){ - throw new RuntimeException("相册数据弱引用为空!请检查!"); - } - return objectWeakReference; + return data.get(id); } }