Top "Null" questions

Null means *nothing* or *unknown*, depending on context.

How to tell if a string is not defined in a Bash shell script

If I want to check for the null string I would do [ -z $mystr ] but what if I want to …

bash shell scripting string null
Checking for an empty field with MySQL

I've wrote a query to check for users with certain criteria, one being they have an email address. Our site …

php sql mysql null
NULL vs nullptr (Why was it replaced?)

I know that in C++ 0x or NULL was replaced by nullptr in pointer-based applications. I'm just curious of the …

c++ pointers null nullptr
error: ‘NULL’ was not declared in this scope

I get this message when compiling C++ on gcc 4.3 error: ‘NULL’ was not declared in this scope It appears and …

c++ gcc pointers null
IllegalArgumentException or NullPointerException for a null parameter?

I have a simple setter method for a property and null is not appropriate for this particular property. I have …

java exception null nullpointerexception illegalargumentexception
How to simplify a null-safe compareTo() implementation?

I'm implementing compareTo() method for a simple class such as this (to be able to use Collections.sort() and other …

java refactoring comparison null compareto
getActivity() returns null in Fragment function

I have a fragment (F1) with a public method like this public void asd() { if (getActivity() == null) { Log.d("yes","…

android android-fragments android-activity null android-context
Nullable types: better way to check for null or zero in c#

I'm working on a project where i find i'm checking for the following in many, many places: if(item.Rate == 0 || …

c# null zero
null vs empty string in Oracle

Possible Duplicate: Why does Oracle 9i treat an empty string as NULL? I have a table in Oracle 10g named …

oracle null oracle10g string
Null or empty check for a string variable

if((isnull(@value,''))='') I want to know whether the above piece of code works in checking if the …

sql sql-server-2008 null null-check