View Single Post
Old 08-04-2003, 07:29 PM   #4 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,174
Belisarius is on a distinguished road
When declaring methods that return an array, consider returning an array of size 0 instead of places where you'd return a "null". This will help prevent runtime NullPointerExceptions when someone tries to reference an element in it, or even more common, "length".
__________________
GitS
Belisarius is offline   Reply With Quote