Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SdlDisconnectedReason NullPointerException #202

Closed
MikaylaRay44 opened this issue May 20, 2015 · 2 comments
Closed

SdlDisconnectedReason NullPointerException #202

MikaylaRay44 opened this issue May 20, 2015 · 2 comments
Labels
bug A defect in the library

Comments

@MikaylaRay44
Copy link
Contributor

com/smartdevicelink/rpc/enums/SdlDisconnectedReason

NullPointerException is thrown by the convertAppInterfaceUnregisteredReason method in the SdlDisconnectedReason unit test class.

assertEquals(Test.MATCH, 
    SdlDisconnectedReason.DEFAULT, 
    SdlDisconnectedReason.convertAppInterfaceUnregisteredReason(null));

Solution : The method should check that the parameter is not null before using it in a switch statement.

@MikaylaRay44 MikaylaRay44 added the bug A defect in the library label May 20, 2015
@mrapitis
Copy link
Contributor

Both the master and dev branches should already have this resolved. The fix was implemented in #119

@MikaylaRay44
Copy link
Contributor Author

Thank you, yes this change isn't currently reflected in the unit_test branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
None yet
Development

No branches or pull requests

2 participants