Skip to content

Null Pointer Exception in SdlRouterService.getNextTask #1869

@mrapitis

Description

@mrapitis

Bug Summary

We have captured a null pointer exception in SdlRouterService.getNextTask. The issue has been captured via the Play console and occurs regularly, however I have been unable to reproduce the issue on the bench thus far. Please find crash log below for additional details:

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Collection java.util.HashMap.values()' on a null object reference
  at com.smartdevicelink.transport.SdlRouterService.getNextTask (SdlRouterService.java:2945)
  at com.smartdevicelink.transport.SdlRouterService$PacketWriteTaskMaster.run (SdlRouterService.java:3705) 

Reproduction Steps

Expected Behavior:
No null pointer exception crash in getNextTask
Observed Behavior:
Null pointer exception crash in getNextTask

Which projects have you seen this bug on?

Android

Android Version(s)

No response

Android Device(s)

No response

sdl_java_suite Version

5.6.1

Testing Environment(s)

Ford Headunits in field

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA defect in the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions