Skip to content
Snippets Groups Projects
Commit 778f73f9 authored by evitayan's avatar evitayan
Browse files

Fix NullPointException in creating first Child

This commit fixes the NullPointException when creating first
Child is rejected by a error notification. The root cause is
that when receiving a error notification, saPayload returned
by ikeMessage.getPayloadForType will be null and will be
passed to #handleFirstChildExchange.

This commit also stops throwing fatal exception to
IkeSessionStateMachine when there is a missing payload
for create first Child. This will allow IKE AUTH succeed and
let ChildSessionStateMachine to do the check

Bug: 148287674
Test: atest testIkeAuthHandlesFirstChildCreationFail
Test: atest FrameworksIkeTests
Change-Id: I0f130abca20c748969b28cb7ad67de3392a3aa06
parent 712cb8ae
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment