Skip to content

Commit 0e46537

Browse files
Merge pull request #1743 from smartdevicelink/bugfix/issue_1741
Fix IndexOutOfBoundsException in SdlRouterService
2 parents 589ff93 + b29b063 commit 0e46537

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)