Reply To: EXE_BAD_ACCESS error in Xcode

NodeCanvas Forums Support EXE_BAD_ACCESS error in Xcode Reply To: EXE_BAD_ACCESS error in Xcode

#11283
emilio.saffi
Participant

I was debugging a bit this morning and I seem to have found the cause of the issue. XCode was catching the EXE_BAD_ACCESS when trying to use a null reference in the NodeCanvas.Framework.Task.Set protected function:
Screen-Shot-2016-08-26-at-13.59.34

To mitigate this I replaced the try/catch blocks with some code that would not throw the same exception. I would be grateful if you could review the following fix and share your thoughts on it:

Screen-Shot-2016-08-26-at-13.54.31

Attachments:
  1. Screen-Shot-2016-08-26-at-13.59.34.png

  2. Screen-Shot-2016-08-26-at-13.54.31.png