|
@@ -907,10 +907,10 @@ public class PagerActivity extends BaseActivity implements Listener.PlayListener
|
|
|
if (bean.type == Constant.MESSAGE_TYPE_VOICE ||
|
|
|
bean.type == Constant.MESSAGE_TYPE_PHOTO ||
|
|
|
bean.type == Constant.MESSAGE_TYPE_VIDEO) {
|
|
|
- if (bean.filePath.length() > 1) {
|
|
|
+ if (bean.filePath != null && bean.filePath.length() > 1) {
|
|
|
FilePathUtils.deleteFile(bean.filePath);
|
|
|
}
|
|
|
- if (bean.videoPath.length() > 1) {
|
|
|
+ if (bean.videoPath != null && bean.videoPath.length() > 1) {
|
|
|
FilePathUtils.deleteFile(bean.videoPath);
|
|
|
}
|
|
|
}
|