Issue 260: NullPointerException in Guice.createInjector(...) with null  
module
http://code.google.com/p/google-guice/issues/detail?id=260

New issue report by kris.nuttycombe:
This is a bit trivial, but:

Module mod = null;
Guice.createInjector(Stage.Development, mod)

results in:

java.lang.NullPointerException
   at com.google.inject.BinderImpl.install(BinderImpl.java:199)
   at com.google.inject.Guice.createInjector(Guice.java:77)
   at com.google.inject.Guice.createInjector(Guice.java:64)

Although NullPointerException is possibly a legitimate error to throw here,
IllegalArgumentException would be preferable due to the frequency with
which NPEs are associated with programming errors.


Issue attributes:
        Status: New
        Owner: ----
        Labels: Type-Defect Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to