mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-04-02 06:42:47 -04:00
Make SpotBugs happy
This commit is contained in:
@@ -18,8 +18,8 @@ android {
|
||||
applicationId "me.hackerchick.catima"
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 30
|
||||
versionCode 71
|
||||
versionName "2.0.1"
|
||||
versionCode 72
|
||||
versionName "2.0.2"
|
||||
|
||||
vectorDrawables.useSupportLibrary true
|
||||
}
|
||||
|
||||
@@ -637,7 +637,11 @@ public class LoyaltyCardEditActivity extends AppCompatActivity
|
||||
colors.recycle();
|
||||
}
|
||||
|
||||
thumbnail.setOnClickListener(new ColorSelectListener(tempLoyaltyCard.headerColor));
|
||||
// It can't be null because we set it in updateTempState but SpotBugs insists it can be
|
||||
// NP_NULL_ON_SOME_PATH: Possible null pointer dereference
|
||||
if(tempLoyaltyCard.headerColor != null) {
|
||||
thumbnail.setOnClickListener(new ColorSelectListener(tempLoyaltyCard.headerColor));
|
||||
}
|
||||
|
||||
// Update from intent
|
||||
if (barcodeType != null) {
|
||||
|
||||
Reference in New Issue
Block a user