java lang null pointer exception on OS X ML, on OS X SL ok