pivotal/robolectric — pull request #157 by savvasdalkitsis (2011-11-09 18:19:41+00:00)
Title: BitmapFactory.decodeFile(String, Options) crashes when null Options is passed.

The default Android behaviour of the BitmapFactory.decodeFile(String, Options) method, when null is passed for Options, is to call the BitmapFactory.decodeFile(String) method.

The Shadow of the BitmapFactory throws a null pointer exception in that situation, that is caused by the stringify method trying to add the description of the null Options.

I wrote a test that verifies the delegation of the call to the method with the alternative signature and the accompanying code.