Articles
|
News
|
Weblogs
|
Books
|
Forums
Artima Forums
|
Articles
|
Weblogs
|
Java Answers
|
News
Sponsored Link
•
Java Buzz Forum
Misplaced null checks
0
replies on
1
page.
Welcome
Guest
Sign In
Back to Topic List
Reply to this Topic
Search Forum
Threaded View
Previous Topic
Next Topic
Flat View: This topic has
0
replies on
1
page
Tom Copeland
Posts: 486
Nickname: tcopeland
Registered: Nov, 2004
Tom Copeland is a junior developer.
Misplaced null checks
Posted: Jan 3, 2006 8:11 AM
Reply
This post originated from an RSS feed registered with Java Buzz by Tom Copeland.
Original Post:
Misplaced null checks
Feed Title: Junior developer: Java
Feed URL: http://tomcopeland.blogs.com/juniordeveloper/index-java.rdf
Feed Description: System.out.println("Hello world!");
Latest
Java Buzz
Posts
Latest Java Buzz Posts by
Tom Copeland
Latest Posts From
Junior developer: Java
Advertisement
Can you see the problem in this code? public class Foo { void bar() { if (b.equals(a.buz()) a != null) { // do something } }} If a really is null, there'll be a NullPointerException thrown - because the null...
Read:
Misplaced null checks
Previous Topic
Next Topic
Sponsored Links
Web
Artima.com
Copyright
© 1996-2019 Artima, Inc. All Rights Reserved. -
Privacy Policy
-
Terms of Use