My Least Favourite Error Messages

My least favourite error messages are Java's array-index-out-of-bounds and null-pointer ones, as in:

Exception in thread "main" java.lang.NullPointerException
at mystuff.prog.main(prog.java:11)
where Java refuses to tell me which variable holds the empty pointer or faulty array index. This is no small irritation when one is calling a method that takes seventeen pointer arguments, any of which could be null.


February 14, 2010
URL:http://www.drdobbs.com/architecture-and-design/my-least-favourite-error-messages/228700036

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.