hello developers,
I recently found myself in the situation that something did not work, and the apparent cause as reported by GeoNetwork was a NullPointerException somewhere. This however did not give any clue as to what might have been going on.
After quite a lot of debugging and System.out.println()s I found the cause. It could have been a 10 seconds analysis if only the code did not catch, and then ignore the actual exception that caused the error.
So … I’d like to ask all developers… please never ever swallow exceptions (however obvious that might sound); always print stack traces at the point where an exception occurs, no matter what imaginative exception handling you apply next; and if you come across this kind of code in the existing base, please improve it.
thank you very much
Heikki Doeleman