calabash/calabash-android — pull request #72 by scompt (2012-08-08 07:04:26+00:00)
Title: Make ObjectMapper final and initialize it at definition to prevent NPE

For some reason when running my tests, I'm regularly (>50%) getting NullPointerExceptions because the `mapper` field is null in `HttpServer`. My only explanation for this is that `NanoHTTPD` is doing some work before the `HttpServer` gets a chance to initialize `mapper`.

My fix for this is to make mapper final and initialize it at definition. The NPE's have disappeared.