Fixed segmentation faults caused by accessing NULL pointers during mutex...
Fixed segmentation faults caused by accessing NULL pointers during mutex operations. This bug was triggered while setting priorities.
Signed-off-by: Tom Vrancken <email@tomvrancken.nl>