Skip to content

Commit

Permalink
[26270] NullPointerException abgefangen (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksic28 authored and huthomas committed May 23, 2024
1 parent 204f66a commit 3131691
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ public String getRequiredString(ICoverage coverage, String name) {
@Override
public void setRequiredString(ICoverage coverage, String name, String value) {
String requirements = BillingSystemServiceHolder.get().getRequirements(coverage.getBillingSystem());
String[] req = requirements.split(";"); //$NON-NLS-1$
int idx = StringTool.getIndex(req, name + ":T"); //$NON-NLS-1$
if (idx != -1) {
coverage.setExtInfo(name, value);
if (!StringTool.isNothing(requirements)) {
String[] req = requirements.split(";"); //$NON-NLS-1$
int idx = StringTool.getIndex(req, name + ":T"); //$NON-NLS-1$
if (idx != -1) {
coverage.setExtInfo(name, value);
}
}
}

Expand Down

0 comments on commit 3131691

Please sign in to comment.