Dont NPE if the thumbnail file cannot be opened.

This commit is contained in:
Chih-Chung Chang
2009-09-29 16:30:30 -07:00
parent d35afcda67
commit f5722b3f22

View File

@@ -119,7 +119,9 @@ public class MiniThumbFile {
// ignore exception
}
}
mChannel = mMiniThumbFile.getChannel();
if (mMiniThumbFile != null) {
mChannel = mMiniThumbFile.getChannel();
}
}
return mMiniThumbFile;
}