Skip to content

Commit

Permalink
Merge pull request #705 from bobzilladev/cellular-nullomata
Browse files Browse the repository at this point in the history
fix npe in CellSearchResponse
  • Loading branch information
bobzilladev authored Jul 2, 2024
2 parents 07a1983 + 3c986cc commit 42489b4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 42489b4

Please sign in to comment.