Fix null pointer exception when going back to main activity from add feed activity

This commit is contained in:
Shinokuni 2019-07-07 13:50:50 +02:00
parent a343b8c2aa
commit ddfd9507a5
1 changed files with 5 additions and 2 deletions

View File

@ -87,7 +87,10 @@ public class Feed implements Parcelable {
iconUrl = in.readString();
etag = in.readString();
lastModified = in.readString();
folderId = in.readInt();
int parcelFolderId = in.readInt();
folderId = parcelFolderId == 0 ? null : parcelFolderId;
remoteId = in.readInt();
}
@ -297,7 +300,7 @@ public class Feed implements Parcelable {
dest.writeString(iconUrl);
dest.writeString(etag);
dest.writeString(lastModified);
dest.writeInt(folderId);
dest.writeInt(folderId == null ? 0 : folderId);
dest.writeInt(remoteId);
}
}