bugfix:
- fix invalid assert statement.
- fix deprecated usage of NULL.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>