Java Long.intValue() passed into Integer which is returning NULL

I'm looking into an error which is throwing in our Tomcat logs, return a NULL value for an Integer.

The thing is, we have one method which has a Long value (we run some basic != NULL validation on the Long), this passes over the Long.intValue() to another method, which holds the value as a Integer.

It's in this second method that we have some validation code, which return "The code of 'null' is not recognized'

My question is, how can a Long which we know is not null pass...

Read More »

By: StackOverFlow - 5 days ago

Related Posts