Skip to content

Commit 7ad38b2

Browse files
committed
#13557 - Fix unsafe null handling of testResultVerified field across the codebase
1 parent 0bc2853 commit 7ad38b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sormas-app/app/src/main/java/de/symeda/sormas/app/pathogentest/edit/PathogenTestEditActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import android.os.AsyncTask;
2424
import android.util.Log;
2525
import android.view.Menu;
26-
2726
import de.symeda.sormas.api.disease.DiseaseVariant;
2827
import de.symeda.sormas.api.i18n.I18nProperties;
2928
import de.symeda.sormas.api.i18n.Strings;
@@ -155,7 +154,7 @@ protected void onPostExecute(AsyncTaskResult<TaskResultHolder> taskResult) {
155154
if (taskResult.getResultStatus().isSuccess()) {
156155
Sample sampleOfPathogenTestToSave = pathogenTestToSave.getSample();
157156
if (sampleOfPathogenTestToSave != null
158-
&& Boolean.TRUE == pathogenTestToSave.getTestResultVerified()
157+
&& Boolean.TRUE.equals(pathogenTestToSave.getTestResultVerified())
159158
&& pathogenTestToSave.getTestedDisease() == associatedCase.getDisease()
160159
&& pathogenTestToSave.getTestResult() != sampleOfPathogenTestToSave.getPathogenTestResult()) {
161160
final ConfirmationDialog confirmationDialog = new ConfirmationDialog(

0 commit comments

Comments
 (0)