Skip to content

Commit

Permalink
Merge pull request codebutler#154 from phcoder/attrcrash
Browse files Browse the repository at this point in the history
Fix crash when opening map on Suica
  • Loading branch information
micolous authored Sep 2, 2018
2 parents 7274e59 + 15583a7 commit ed49573
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/au/id/micolous/metrodroid/transit/Station.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Station[] newArray(int size) {
private final String mCompanyName, mLineName, mStationName, mShortStationName, mLatitude, mLongitude, mLanguage;
private final boolean mIsUnknown;
private final String mHumanReadableId;
private List<String> mAttributes;
private final List<String> mAttributes;

private Station(String humanReadableId, String stationName, boolean isUnknown) {
this(humanReadableId, null, null, stationName,
Expand Down Expand Up @@ -77,6 +77,7 @@ private Station(Parcel parcel) {
mLanguage = parcel.readString();
mIsUnknown = parcel.readInt() == 1;
mHumanReadableId = parcel.readString();
mAttributes = new ArrayList<>();
parcel.readList(mAttributes, Station.class.getClassLoader());
}

Expand Down

0 comments on commit ed49573

Please sign in to comment.