Fix Issue #827 by catching NPE
add test/example that would catch Issue #827
update version of mac native app to 1.1