Skip to content

Commit b29b063

Browse files
author
Julian Kast
committed
Fix IndexOutOfBoundsException in SdlRouterService
1 parent 589ff93 commit b29b063

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3319,7 +3319,7 @@ private TransportType getCompatPrimaryTransport() {
33193319
try {
33203320
List<TransportType> transportTypes = (List<TransportType>) obj;
33213321
if (transportTypes != null) {
3322-
if (transportTypes.get(0) != null) {
3322+
if (transportTypes.size() > 0 && transportTypes.get(0) != null) {
33233323
return transportTypes.get(0);
33243324
}
33253325
}

0 commit comments

Comments
 (0)