dev@glassfish.java.net

Re: [_at_GFv3] NPE in DefaultAccessLogFormatterImpl.setPattern

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Fri, 14 Mar 2008 12:22:05 -0700

Sahoo wrote:
> Kedar,
>
> I don't know why nobody has seen this issue so far. Is the following
> code returning null when it should not?
>
> hk2/config/.../ConfigModel.java
> ...
> public Object get(Dom dom, Type rt) {
> Object value = super.get(dom, rt);
> if (value == null)
> return (dv);
> return ( null ); // Should it not return value?
> }
>
> It seems to be causing the following NPE for me when I deploy a simple

Yes, Sahoo, it should.

Jerome has fixed it.

Sorry for the trouble. For everyone else: please update your copy of
hk2. If you have checked out hk2, please update the sources and rebuild
it with "mvn install" followed by "svn update".

I broke the build. Sorry again.

- Kedar