NullPointer Exception in ProxyMatcher

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

NullPointer Exception in ProxyMatcher

chbussler
Hi,

I get a NullPointer Exception:

java.lang.NullPointerException
        at org.parboiled.matchers.ProxyMatcher.label(ProxyMatcher.java:156)

At this point in the code, the call right before that

Rule inner = unwrap(target);

returns a null (I looked at it with the debugger). So the ProxyMatcher at hand 'this.target' has a null in its property called 'target'.

Could you have a quick look and see if anything comes to mind based on this?

Thanks,

Christoph
fge
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NullPointer Exception in ProxyMatcher

fge
Hello,

On Fri, Apr 18, 2014 at 7:50 PM, Christoph Bussler [via parboiled
users] <[hidden email]> wrote:

> Hi,
>
> I get a NullPointer Exception:
>
> java.lang.NullPointerException
>         at org.parboiled.matchers.ProxyMatcher.label(ProxyMatcher.java:156)
>
> At this point in the code, the call right before that
>
> Rule inner = unwrap(target);
>
> returns a null (I looked at it with the debugger). So the ProxyMatcher at
> hand 'this.target' has a null in its property called 'target'.
>
> Could you have a quick look and see if anything comes to mind based on this?
>
> Thanks,
>
> Christoph
>

I take it this is parboiled1, right? This is part of the -core
package. Matthias, do you mind if I ask that a bug be open at
https://github.com/parboiled1/parboiled-core with an SSCCE? Also,
which version? (latest is 1.1.6)

See https://github.com/parboiled1/project-info as well.

Regards,
--
Francis Galiegue, [hidden email]
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NullPointer Exception in ProxyMatcher

chbussler
Hi,

thanks for the quick response; yes, parboiled1, yes 1.1.6; I'll open a bug in the location you suggested and will try to provide a parser that reproduces this issue.

Thanks,

Christoph

fge wrote
Hello,

On Fri, Apr 18, 2014 at 7:50 PM, Christoph Bussler [via parboiled
users] <[hidden email]> wrote:
> Hi,
>
> I get a NullPointer Exception:
>
> java.lang.NullPointerException
>         at org.parboiled.matchers.ProxyMatcher.label(ProxyMatcher.java:156)
>
> At this point in the code, the call right before that
>
> Rule inner = unwrap(target);
>
> returns a null (I looked at it with the debugger). So the ProxyMatcher at
> hand 'this.target' has a null in its property called 'target'.
>
> Could you have a quick look and see if anything comes to mind based on this?
>
> Thanks,
>
> Christoph
>

I take it this is parboiled1, right? This is part of the -core
package. Matthias, do you mind if I ask that a bug be open at
https://github.com/parboiled1/parboiled-core with an SSCCE? Also,
which version? (latest is 1.1.6)

See https://github.com/parboiled1/project-info as well.

Regards,
--
Francis Galiegue, [hidden email]
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NullPointer Exception in ProxyMatcher

chbussler
Hi,

posted in https://github.com/parboiled1/parboiled-core/issues/1

Thanks,

Christoph

chbussler wrote
Hi,

thanks for the quick response; yes, parboiled1, yes 1.1.6; I'll open a bug in the location you suggested and will try to provide a parser that reproduces this issue.

Thanks,

Christoph

fge wrote
Hello,

On Fri, Apr 18, 2014 at 7:50 PM, Christoph Bussler [via parboiled
users] <[hidden email]> wrote:
> Hi,
>
> I get a NullPointer Exception:
>
> java.lang.NullPointerException
>         at org.parboiled.matchers.ProxyMatcher.label(ProxyMatcher.java:156)
>
> At this point in the code, the call right before that
>
> Rule inner = unwrap(target);
>
> returns a null (I looked at it with the debugger). So the ProxyMatcher at
> hand 'this.target' has a null in its property called 'target'.
>
> Could you have a quick look and see if anything comes to mind based on this?
>
> Thanks,
>
> Christoph
>

I take it this is parboiled1, right? This is part of the -core
package. Matthias, do you mind if I ask that a bug be open at
https://github.com/parboiled1/parboiled-core with an SSCCE? Also,
which version? (latest is 1.1.6)

See https://github.com/parboiled1/project-info as well.

Regards,
--
Francis Galiegue, [hidden email]
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Loading...