Linda didn't have much to say about the following code snippet. In fact, she sent nothing else; therefore, I feel like I don't need to say much about it. All I know is that if I ever need a logger to produce a stack trace in Java, this is how I'll do it.
if ( LOG.isDebugEnabled() ) {
try {
Integer i = null;
i.doubleValue();
}
catch ( NullPointerException e ) {
LOG.debug(context.getIdentity().getToken() + " stopTime:"
+ instrPoint.getDescription() + " , "
+ instrPoint.getDepth(), e);
}
}
As an aside, please stop sending code in attachments. It's degrading to both of us.
![](https://thedailywtf.com/images/inedo/buildmaster-icon.png)
[Advertisement]
BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications.
Explore how!