Skip to content

Commit

Permalink
NPE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vitas committed Oct 29, 2017
1 parent 145bcf2 commit 3129e4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId 'com.samebits.beacon.locator'
minSdkVersion 18
targetSdkVersion 22
versionCode 117
versionName '1.1.7'
versionCode 118
versionName '1.1.8'
testApplicationId 'com.samebits.beacon.locator.test'
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ private void stopScanTimeout() {
}

private void emptyListSetup() {
if (mBeaconsAdapter != null && mBeaconsAdapter.getItemCount() == 0) {
if (mEmpty != null) {
if (mEmpty != null) {
if (mBeaconsAdapter != null && mBeaconsAdapter.getItemCount() == 0) {
mEmpty.setVisibility(View.VISIBLE);
mEmptyView.text.setText(getString(R.string.text_please_start_scan));
} else {
mEmpty.setVisibility(View.GONE);
}
mEmptyView.text.setText(getString(R.string.text_please_start_scan));
} else {
mEmpty.setVisibility(View.GONE);
}
}

Expand Down

0 comments on commit 3129e4a

Please sign in to comment.