I think it would be safer to throw an exception here instead of returning null.  Calling this will a null InputStream is really an error case in my opinion.