Check map null
This commit is contained in:
1 parent
265cbd0df5
commit
8774268adf
1 file changed
+4
-1
@@ -98,7 +98,10 @@ public abstract class GalleryInfoContentHelper extends ContentLayout.ContentHelp
|
||||
int id = bundle.getInt(KEY_DATA_MAP, IntIdGenerator.INVALID_ID);
|
||||
if (id != IntIdGenerator.INVALID_ID) {
|
||||
FavouriteStatusRouter router = EhApplication.getFavouriteStatusRouter();
|
||||
map = router.restoreDataMap(id);
|
||||
Map<Long, GalleryInfo> map = router.restoreDataMap(id);
|
||||
if (map != null) {
|
||||
this.map = map;
|
||||
}
|
||||
}
|
||||
|
||||
return super.restoreInstanceState(state);
|
||||
|
||||
Reference in new issue
Block a user