Top "Null" questions

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

How can I check for an empty/undefined/null string in JavaScript?

I saw this question, but I didn't see a JavaScript specific example. Is there a simple string.Empty available in …

javascript null is-empty
How can I determine if a variable is 'undefined' or 'null'?

How do I determine if variable is undefined or null? My code is as follows: var EmpName = $("div#esd-names div#…

javascript jquery variables null undefined
Is there a standard function to check for null, undefined, or blank variables in JavaScript?

Is there a universal JavaScript function that checks that a variable has a value and ensures that it's not undefined …

javascript null comparison undefined
Referring to the null object in Python

How do I refer to the null object in Python?

python null
What is a NullReferenceException, and how do I fix it?

I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance …

c# .net vb.net null nullreferenceexception
Altering a column: null to not null

I have a table that has several nullable integer columns. This is undesirable for several reasons, so I am looking …

sql-server tsql null alter-table alter-column
How to avoid null checking in Java?

I use object != null a lot to avoid NullPointerException. Is there a good alternative to this? For example I often …

java object nullpointerexception null
How do I check for null values in JavaScript?

How can I check for null values in JavaScript? I wrote the code below but it didn't work. if (pass == …

javascript null compare comparison
Checking if an object is null in C#

I would like to prevent further processing on an object if it is null. In the following code I check …

c# null nullreferenceexception
How to check for an undefined or null variable in JavaScript?

We are frequently using the following code pattern in our JavaScript code if (typeof(some_variable) != 'undefined' && some_…

javascript null undefined