Skip navigation
JBossDeveloper
Log in
Register
JBoss Community Archive (Read Only)
Home
Content
Places
Search
Cancel
Error: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page.
All People
>
navurinv
>
Java Fortune
>
2012
>
January
>
24
Java Fortune
Previous post
Next post
Returning null
Posted by
navurinv
in
Java Fortune
on Jan 24, 2012 12:01:54 AM
Causes NullPointerExceptions.
Instead, return…
empty objects
custom-made “Null Objects”
This content has been marked as final.
Show 0 comments
Comments
0
Comments
Name
Email Address
Website Address
Name
(Required)
Email Address
(Required, will not be published)
Website Address
<%= commentBody %>
Actions
Filter Blog
By date:
January 2012
December 2011
Recent Posts
Temporary Fields
Empty Catch Block
Subclassing for Functionality
Returning null
Using floats and doubles for currency calculations
Initializing Strings with “new”
Temporary Fields
Using Magic Numbers
Accessible Fields
Duplicate Code!
Comments