Fixed potential crash
This commit is contained in:
parent
d1522c1244
commit
87c1a7d3f8
1 changed files with 1 additions and 1 deletions
|
@ -974,7 +974,7 @@ public class ChatMessagesFragment extends Fragment
|
|||
|
||||
private void onRestoreInstanceState(Bundle savedInstanceState) {
|
||||
String files[] = savedInstanceState.getStringArray("Files");
|
||||
if (files.length > 0) {
|
||||
if (files != null && files.length > 0) {
|
||||
for (String file : files) {
|
||||
if (FileUtils.isExtensionImage(file)) {
|
||||
addImageToPendingList(file);
|
||||
|
|
Loading…
Reference in a new issue