Skip to content

Commit

Permalink
fix npe in CellSearchResponse
Browse files Browse the repository at this point in the history
bobzilladev committed Jun 30, 2024
1 parent 07a1983 commit 3c986cc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -96,8 +96,9 @@ public void setChannel(Integer channel) {
}
public static Network asNetwork(CellNetwork wNet) {
final LatLng l = new LatLng(wNet.getTrilat(),wNet.getTrilong());
final String attr = wNet.getAttributes() == null ? "" : wNet.getAttributes().toUpperCase(Locale.ROOT);
return new Network(wNet.getId(), wNet.getSsid(),
0, wNet.getAttributes().toUpperCase(Locale.ROOT)+" [SEARCH]",
0, attr + " [SEARCH]",
0, NetworkType.valueOf(wNet.getGentype()) /*TODO: check*/, l);
}
}

0 comments on commit 3c986cc

Please sign in to comment.