Android-nRF-Mesh-Library: Crash app in sendBlockAck


Describe the bug When the library receives a segmented message that needs a block ack from an unknown node, the app will crash due to a NullPointerException.

To Reproduce Steps to reproduce the behavior:

  1. provision two nodes to the network
  2. manually delete one node from the database without sending a ConfigNodeReset
  3. connect to the second node of this network
  4. make the first node to send a message that makes the library to trigger block ack answer

Expected behavior Probably log some warning that the node is unknown instead of trying to send a block ack ?

Platform details:

  • Device: Any
  • OS: Android 8.0
  • Library Version 3.1.6

Logs / Screenshots image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

I gave this a test now and I am not able to reproduce this, I used the mesh chat example from the nRF Connect SDK where you can send a long message to a specific node. The fix from #461 have solved the issue in my humble opinion.