Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
fixes crash describes in #179
Browse files Browse the repository at this point in the history
  • Loading branch information
y20k committed Apr 13, 2018
1 parent 9d62957 commit ab38b66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ public void onNothingSelected(AdapterView<?> adapterView) {
// listen for click on delete button
public void onClick(DialogInterface arg0, int arg1) {
// get selection from spinner
String selectionName = stationNames.get(mStationSelectionId);
Uri selectionUri = Uri.parse(stationUrls.get(mStationSelectionId));
String selectionName = null;
Uri selectionUri = null;
if (stationNames.size() > mStationSelectionId) {
selectionName = stationNames.get(mStationSelectionId);
}
selectionUri = Uri.parse(stationUrls.get(mStationSelectionId));
// add new station
StationFetcher stationFetcher = new StationFetcher(activity, StorageHelper.getCollectionDirectory(activity), selectionUri, selectionName);
stationFetcher.execute();
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ allprojects {

project.ext {
applicationId = 'org.y20k.transistor'
versionCode = 55
versionName = '3.0.5'
versionCode = 56
versionName = '3.0.6'
minSdkVersion = 19
compileSdkVersion = 27
targetSdkVersion = 27
Expand Down

0 comments on commit ab38b66

Please sign in to comment.