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()) {