isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Huber <a.hu...@corax.at>
Subject Re: NPE on Debug logging in ScalarModelWithPending.java
Date Thu, 01 Feb 2018 06:55:51 GMT
Hi Martin,

thanks for this nice little Java puzzler. It got me curious and I had to
lookup Java operator precedence to solve this one, we need parentheses!

Cheers!

On 2018/02/01 03:23:09, Martin Hesse <m...@gmail.com> wrote:
> Hi,>
>
> Don't know if this qualifies as Heisenbug [0], since debugging and debug>
> logging are not the same thing, but this NPE seems to only show when I>
> switch logging to DEBUG. Using 1.16.0. Didn't go further into it.>
>
> Caused by:>
> java.lang.NullPointerException>
>
org.apache.isis.viewer.wicket.model.models.ScalarModelWithPending$Util$1#setObject(ScalarModelWithPending.java:75)>

>
> -- ScalarModelWithPending.java lines 74-76 -->
> if (LOG.isDebugEnabled()) {>
> LOG.debug("setting to: " +>
> adapterMemento!=null?adapterMemento.toString():null);>
> }>
>
> Thanks and regards>
> Martin>
>
>
> [0] https://en.wikipedia.org/wiki/Heisenbug>
>
-- 
Andreas Huber
*early corax KG*
Hofzeile 11/3/11, A-1190 Wien, mobile: +43 699 19468928, web:
www.corax.at <http://www.corax.at>
Firmensitz Wien FN 343630 p, Handelsgericht Wien

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message