Skip to content

Commit

Permalink
fixing a production crash by allowing the list to grow after loading (#…
Browse files Browse the repository at this point in the history
…685)

Co-authored-by: Andy Carra <rksh@wigle.net>
  • Loading branch information
rksh and Andy Carra authored Jan 31, 2024
1 parent b0fbeb0 commit e1f1369
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1364,10 +1364,8 @@ public Network getNetwork( final String bssid ) {

Integer mfgrid = null;
if (mfgridInt != 0) mfgrid = mfgridInt;
List<String> serviceUUIDs = null;
if (!service.isEmpty()) {
serviceUUIDs = Arrays.asList(service.split(" "));
}
List<String> serviceUUIDs = service.isEmpty() ? null :
new ArrayList<>(Arrays.asList(service.split(" ")));

final NetworkType type = NetworkType.typeForCode( cursor.getString(3) );
retval = new Network( bssid, ssid, frequency, capabilities, 0, type, serviceUUIDs, mfgrid );
Expand Down

0 comments on commit e1f1369

Please sign in to comment.