I know buuut unfortunately, it seems on Mac OS X it will trigger an error anyway and I have no clue why :( Before I was doing all the right catch-es that the docblocks are mentioning but then again it triggered the NPE in the first place.