mirror of https://github.com/readrops/Readrops.git
Fix null pointer exception when going back to main activity from add feed activity
This commit is contained in:
parent
a343b8c2aa
commit
ddfd9507a5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue