Skip to content

Commit

Permalink
Fix NPE for DW sdk during illumination config #162
Browse files Browse the repository at this point in the history
  • Loading branch information
DaSpood committed Mar 20, 2024
1 parent c8bbc17 commit 56d78e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public void onReceive(Context context, Intent intent) {
if (this.currentlyActiveProfile != null && this.currentlyActiveProfile.equals(currentConfig.getProfileName())) {
configureSymbologies();
}
illuminationOn = !currentConfig.getParameter("BARCODE", "illumination_mode").equals("off");
final String illumination_mode = currentConfig.getParameter("BARCODE", "illumination_mode");
illuminationOn = illumination_mode != null && !illumination_mode.equals("off");
}
}

Expand Down

0 comments on commit 56d78e9

Please sign in to comment.