From 83a10a1f459ea21d15850fc0cc334abc291f4fde Mon Sep 17 00:00:00 2001 From: chenlw <874313221@qq.com> Date: Sat, 8 Oct 2016 09:42:01 +0800 Subject: [PATCH] =?UTF-8?q?volume=E8=B7=AF=E5=BE=84=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/platform/utils/ThreadVolume.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/platform/utils/ThreadVolume.java b/src/com/platform/utils/ThreadVolume.java index 9023ad79..b0b9ac91 100644 --- a/src/com/platform/utils/ThreadVolume.java +++ b/src/com/platform/utils/ThreadVolume.java @@ -84,9 +84,11 @@ public class ThreadVolume extends Thread { List path = volumeInfo .getVolumeMountPoint(volumeName); // 默认加载第一个路径 - for (String one : path) { - if (!one.contains("df")) { - volume.setPath(one); + if (null != path) { + for (String one : path) { + if (!one.contains("df")) { + volume.setPath(one); + } } } if (null == volume.getPath()) {