Gang Of Coders
Home
About Us
Contact Us
All Null Solutions on Gang of Coders
Total of 296 Null Solutions
Avoiding NullPointerException in Java
Java
Nullpointerexception
Null
Altering a column: null to not null
Sql Server
Tsql
Null
Alter Table
Alter Column
'\0' evaluates false, "\0" evaluates true
C
Arrays
String
Null
Kernighan and-Ritchie
NULL pointer with boost::shared_ptr?
C++
Boost
Null
Pointers
Shared Ptr
Checking an input param if not Null and using it in where in SQL Server
Sql Server
Sql Server-2008
Null
Where Clause
Coalesce
Assigning NULL to a list element in R?
R
List
Null
Is this the proper way to initialize null references in Scala?
Scala
Null
Checking for a null int value from a Java ResultSet
Java
Null
Resultset
How to detect if NSString is null?
Objective C
Null
Nsnull
Spark sql how to explode without losing null values
Java
Apache Spark
Null
Apache Spark-Sql
Can '\0' and NULL be used interchangeably?
C++
Null
Create unique constraint with null columns
Sql
Postgresql
Database Design
Null
Referential Integrity
How to select rows with one or more nulls from a pandas DataFrame without listing columns explicitly?
Python
Pandas
Null
Nan
DateTime "null" value
C#
Datetime
Null
PHP is_null() and ==null
Php
Null
Check if a parameter is null or empty in a stored procedure
Sql
Sql Server-2008
Stored Procedures
Parameters
Null
Why do seemingly empty files and strings produce md5sums?
String
Null
Md5sum
MySQL: selecting rows where a column is null
Mysql
Null
how to add nil to nsmutablearray?
Iphone
Objective C
Nsmutablearray
Null
Java: avoid checking for null in nested classes (Deep Null checking)
Java
Class
Null
Ternary
Don't update column if update value is null
Sql
Postgresql
Null
Sql Update
Arrays with NULL keys
Php
Arrays
Null
Why (null == false) and (null == true) both return false?
Javascript
Null
Boolean
Is there any reason to check for a NULL pointer before deleting?
C++
Pointers
Null
Delete Operator
Why static fields are not initialized in time?
Java
Static
Null
Nullpointerexception
Is it possible to set an object to null?
C++
Object
Null
Is Empty
Stdoptional
Throwing ArgumentNullException in constructor?
C#
Exception
Constructor
Null
Arguments
C#: should object variables be assigned to null?
C#
Garbage Collection
Null
How do :default => 0 and :null => false differ for integer fields in migrations?
Ruby on-Rails
Null
Migration
Default
What is the PostgreSQL equivalent for ISNULL()
Sql Server
Postgresql
Null
How to check if String is null
C#
Null
Why can't primitive data types be "null" in Java?
Java
Null
Primitive Types
Why use Optional.of over Optional.ofNullable?
Java
Java 8
Nullpointerexception
Null
Optional
What's the difference between undefined in Haskell and null in Java?
Java
Haskell
Types
Null
Maybe
How to insert 'NULL' values into PostgreSQL database using Python?
Python
Postgresql
Null
Psycopg2
Nonetype
MySQL comparison with null value
Mysql
Sql
Null
Isnull
What header defines NULL in C++?
C++
Null
getActionView() of my MenuItem return null
Android
View
Null
Android Actionbar
Django model: NULLable field
Django
Postgresql
Model
Null
Rails checking if a record exists in database
Ruby on-Rails
Database
Null
What is the difference between "(Object)null" and "null" in Java?
Java
Null
Nullpointerexception
How to check a Long for null in java
Java
Null
Long Integer
Accessing class members on a NULL pointer
C++
Null
Virtual
Null Pointer
PHP constructor to return a NULL
Php
Constructor
Error Handling
Null
JavaScript check if value is only undefined, null or false
Javascript
Null
Undefined
Understanding the difference between null and '\u000' in Java
Java
Null
Char
How to avoid checking for null values in method chaining?
Java
Exception
Nullpointerexception
Null
How to show if a method may return null
Java
Null
Design by-Contract
When to use NULL in MySQL tables
Mysql
Null
NULL vs nullptr (Why was it replaced?)
C++
Pointers
Null
Nullptr
What's the difference between [NSNull null] and nil?
Objective C
Cocoa Touch
Cocoa
Null
Nsnull
How come invoking a (static) method on a null reference doesn't throw NullPointerException?
Java
Static
Null
Nullpointerexception
How to deal with (maybe) null values in a PreparedStatement?
Java
Null
Prepared Statement
Difference between null and empty string
Java
String
Null
Nullpointerexception
NULL values inside NOT IN clause
Sql
Sql Server
Tsql
Null
Notin
Which @NotNull Java annotation should I use?
Java
Nullpointerexception
Null
Annotations
Ide
Checking if an object is null in C#
C#
Null
Nullreferenceexception
What is null in Java?
Java
Null
Terminology
Best way to check for "empty or null value"
Sql
Database
Postgresql
Null
Coalesce
TypeScript filter out nulls from an array
Typescript
Null
What is the `zero` value for time.Time in Go?
Time
Go
Null
Best explanation for languages without null
Programming Languages
Functional Programming
Null
Nullpointerexception
Non Nullable
Why does Oracle 9i treat an empty string as NULL?
Sql
Oracle
Null
String
php is null when empty?
Php
Null
Filter values only if not null using lambda in Java8
Java
Lambda
Nullpointerexception
Null
Java 8
Select rows which are not present in other table
Sql
Postgresql
Null
Left Join
Exists
How to set enum to null
C#
Enums
Null
Nullable
MySQL CONCAT returns NULL if any field contain NULL
Mysql
Sql
Null
Concat
Why is null an object and what's the difference between null and undefined?
Javascript
Object
Null
Undefined
Typeof
getActivity() returns null in Fragment function
Android
Android Fragments
Android Activity
Null
Android Context
Do you use NULL or 0 (zero) for pointers in C++?
C++
Null
How can I check for an empty/undefined/null string in JavaScript?
Javascript
Null
Is Empty
nil detection in Go
Go
Null
Origin null is not allowed by Access-Control-Allow-Origin
Javascript
Null
Xmlhttprequest
Cors
Localhost
Setting Objects to Null/Nothing after use in .NET
C#
.Net
vb.net
Memory Management
Null
Can I use if (pointer) instead of if (pointer != NULL)?
C++
Pointers
If Statement
Null
Null Pointer
NULL vs nil in Objective-C
Objective C
Cocoa
Null
How to check if my string is equal to null?
Java
String
Null
Equals
Conditional Operator
Checking for NULL pointer in C/C++
C++
C
If Statement
Null
Coding Style
How to simplify a null-safe compareTo() implementation?
Java
Refactoring
Comparison
Null
Compareto
Cleaner way to do a null check in C#?
C#
.Net 4.0
Null
.Net 4.5
JavaScript null check
Javascript
Null
Undefined
Null Check
How to check null objects in jQuery
Javascript
Jquery
Dom
Object
Null
What is the correct way to represent null XML elements?
Xml
Null
Xml Nil
How do I check for null values in JavaScript?
Javascript
Null
Compare
Comparison
Equality
Difference between null and empty ("") Java String
Java
String
Null
Equals
Referenceequals
When should I use nil and NULL in Objective-C?
Objective C
Null
Nsnull
Is it good practice to NULL a pointer after deleting it?
C++
Pointers
Null
Dynamic Allocation
How to use NULL or empty string in SQL
Sql
Sql Server
Null
Where
How do I get SUM function in MySQL to return '0' if no values are found?
Mysql
Function
Null
Sum
Unique ways to use the null coalescing operator
C#
Coding Style
Null
Conditional Operator
Null Coalescing-Operator
What are the advantages of using nullptr?
C++
C++11
Null
C++ Faq
Nullptr
Why does NULL = NULL evaluate to false in SQL server
Sql
Sql Server
Null
In Objective-C why should I check if self = [super init] is not nil?
Objective C
Null
Init
How to tell if a string is not defined in a Bash shell script
Bash
Shell
Scripting
String
Null
Why `null >= 0 && null <= 0` but not `null == 0`?
Javascript
Null
Comparison
Equality
String.IsNullOrWhiteSpace in LINQ Expression
C#
Linq
Lambda
Null
Linq to-Entities
Why is my Spring @Autowired field null?
Java
Spring
Null
Nullpointerexception
Autowired
What's the better (cleaner) way to ignore output in PowerShell?
Powershell
Null
Void
Io Redirection
Use of Boolean? in if expression
Kotlin
Null
SQL is null and = null
Sql
Null
Null vs. False vs. 0 in PHP
Php
Null
Method Overloading for null argument
Java
Oop
Null
Overloading
Overriding == operator. How to compare to null?
C#
.Net
Null
Overloading
Operator Keyword
Is there a standard function to check for null, undefined, or blank variables in JavaScript?
Javascript
Null
Comparison
Undefined
PHP json_decode() returns NULL with valid JSON?
Php
Json
Null
Does free(ptr) where ptr is NULL corrupt memory?
C
Pointers
Memory Management
Null
Free
What reason is there to use null instead of undefined in JavaScript?
Javascript
Null
Undefined
Java null check why use == instead of .equals()
Java
Null
Is returning null bad design?
Oop
Null
Return Value
ALTER TABLE, set null in not null column, PostgreSQL 9.1
Postgresql
Null
Postgresql 9.1
Is it better to return `undefined` or `null` from a javascript function?
Javascript
Function
Null
Return
Undefined
Deep null checking, is there a better way?
C#
Null
Why does String.valueOf(null) throw a NullPointerException?
Java
Null
Nullpointerexception
Overloading
Api Design
Is null reference possible?
C++
Reference
Null
Language Lawyer
Why is it Valid to Concatenate Null Strings but not to Call "null.ToString()"?
C#
.Net
String
Null
How to resolve TypeError: Cannot convert undefined or null to object
Javascript
Null
Undefined
How to remove all the null elements inside a generic list in one go?
C#
List
Null
Element
How much size "Null" value takes in SQL Server
Sql Server
Tsql
Sql Server-2005
Null
JavaScript checking for null vs. undefined and difference between == and ===
Javascript
Null
Undefined
error: ‘NULL’ was not declared in this scope
C++
Gcc
Pointers
Null
Is null an Object?
Java
Null
Method call if not null in C#
C#
Null
Why is there a `null` value in JavaScript?
Javascript
Null
Language Features
Undefined
How to check for an undefined or null variable in JavaScript?
Javascript
Null
Undefined
Check for null in foreach loop
C#
Loops
Foreach
Null
Unable to cast object of type 'System.DBNull' to type 'System.String`
C#
asp.net
Database
Null
MongoDB: How to query for records where field is null or not set?
Mongodb
Null
Mongodb Query
Exists
Mongo: find items that don't have a certain field
Mongodb
Null
Exists
What is the proper way to check for null values?
C#
.Net
Session
Null
Null Coalescing-Operator
Null check chain vs catching NullPointerException
Java
Exception
Nullpointerexception
Null
Custom Error-Handling
Error:null value in entry: incrementalFolder=null
Gradle
Null
Redefining NULL
C
Null
How can I determine if a variable is 'undefined' or 'null'?
Javascript
Jquery
Variables
Null
Undefined
Why does this string extension method not throw an exception?
C#
Null
Comparison
Ienumerable
Argumentnullexception
json_encode is returning NULL?
Php
Null
Json
When is null or undefined used in JavaScript?
Javascript
Null
Undefined
IllegalArgumentException or NullPointerException for a null parameter?
Java
Exception
Null
Nullpointerexception
Illegalargumentexception
How to do ToString for a possibly null object?
C#
.Net
String
Object
Null
Sort NULL values to the end of a table
Sql
Postgresql
Null
Sql Order-By
Representing null in JSON
Json
Null
Jackson
Gson
How to filter empty or NULL names in a QuerySet?
Django
Django Models
Django Queryset
Filter
Null
IBOutlet is nil, but it is connected in storyboard, Swift
Xcode
Swift
Uistoryboard
Null
Iboutlet
Check if DataRow exists by column name in c#?
C#
Null
Datarow
Why is there a difference in checking null against a value in VB.NET and C#?
C#
vb.net
.Net 4.0
Null
How is null + true a string?
C#
.Net
String
Null
Types
Avoid division by zero in PostgreSQL
Sql
Postgresql
Null
Aggregate Functions
Divide by-Zero
Should a retrieval method return 'null' or throw an exception when it can't produce the return value?
Java
Exception
Error Handling
Null
Why I am getting Cannot pass parameter 2 by reference error when I am using bindParam with a constant value?
Php
Mysql
Pdo
Null
Sql Insert
Does std::string have a null terminator?
C++
String
Null
What is a 'NoneType' object?
Python
Null
Nonetype
Mark parameters as NOT nullable in C#/.NET?
C#
.Net
Parameters
Null
IN Clause with NULL or IS NULL
Sql
Postgresql
Null
Conditional Statements
In Clause
object==null or null==object?
Java
Null
How can I check if a string is null or empty in PowerShell?
.Net
String
Powershell
Null
Identifying and removing null characters in UNIX
Unix
Shell
Null
Special Characters
Why does Map.of not allow null keys and values?
Java
Dictionary
Null
Hashmap
Java 9
Calling Java varargs method with single null argument?
Null
Language Design
Java
Variadic Functions
Removing "NUL" characters
Null
Char
Notepad++
Checking for an empty field with MySQL
Php
Sql
Mysql
Null
Is there a Java standard "both null or equal" static method?
Java
Null
Equals
Shortest way to check for null and assign another value if not
C#
.Net
Null
Variable Assignment
MySQL and PHP - insert NULL rather than empty string
Php
Mysql
Null
Sql Insert
Using Thymeleaf when the value is null
Html
Null
Thymeleaf
How to check a string against null in java?
Java
String
Null
Check if value isset and null
Php
Null
Isset
Java "?" Operator for checking null - What is it? (Not Ternary!)
Java
Syntax
Null
return, return None, and no return at all?
Python
Null
Return
How do I test for an empty string in a Bash case statement?
String
Bash
Null
Case
What is the difference between null and System.DBNull.Value?
C#
Null
Dbnull
Sort by column ASC, but NULL values first?
Sql
Postgresql
Null
Sql Order-By
Uninitialized Object vs Object Initialized to NULL
Java
Null
Initialization
How do you construct a std::string with an embedded null?
C++
Null
Stdstring
What is the difference between Nullable<T>.HasValue or Nullable<T> != null?
C#
.Net
Null
Nullable
Best way to check if a Data Table has a null value in it
C#
.Net
Validation
Datatable
Null
Is it still safe to delete nullptr in c++0x?
C++
Null
Language Lawyer
Delete Operator
Nullable types: better way to check for null or zero in c#
C#
Null
Zero
Testing pointers for validity (C/C++)
C++
C
Validation
Pointers
Null
Rails: Order with nulls last
Ruby on-Rails
Ruby on-Rails-3
Sorting
Activerecord
Null
How should we manage jdk8 stream for null values
Java
Null
Java 8
Java Stream
Is there a Ruby, or Ruby-ism for not_nil? opposite of nil? method?
Ruby on-Rails
Ruby
Null
Best way to check if an PowerShell Object exist?
Powershell
Object
Null
Powershell 2.0
Should JSON include null values
Javascript
Json
Null
Undefined
Difference between NULL and null in PHP
Php
Null
What is the difference between "x is null" and "x == null"?
C#
.Net
Null
Pattern Matching
C# 7.0
null vs empty string in Oracle
Oracle
Null
Oracle10g
String
SQL Server String Concatenation with Null
Sql Server
Null
String Concatenation
Calculated Columns
What is the use of adding a null key or value to a HashMap in Java?
Java
Null
Hashmap
Key
switch with var/null strange behavior
C#
Null
Switch Statement
Var
C# 7.0
Null parameter checking in C#
C#
Function
Null
Best way to check for null values in Java?
Java
Null
Nullpointerexception
C# code won't compile. No implicit conversion between null and int
C#
String
Null
Nullable
Should the hash code of null always be zero, in .NET
C#
.Net
Hash
Null
JavaScript String concatenation behavior with null or undefined values
Javascript
Null
Undefined
String Concatenation
Check if returned value is not null and if so assign it, in one line, with one method call
Java
Syntax
Null
Variable Assignment
Method Call
What is a NullReferenceException, and how do I fix it?
C#
.Net
vb.net
Null
Nullreferenceexception
Does assigning objects to null in Java impact garbage collection?
Java
Null
Garbage Collection
C# okay with comparing value types to null
C#
Null
string.Empty vs null.Which one do you use?
C#
.Net
Null
String
How to specify null value as filter in a Doctrine query?
Php
Null
Doctrine
Dql
MySql Query Replace NULL with Empty String in Select
Mysql
String
Replace
Null
Best ruby idiom for "nil or zero"
Ruby
Design Patterns
Idioms
Null
NULL in MySQL (Performance & Storage)
Sql
Mysql
Null
What is the point of the class Option[T]?
Java
Scala
Null
Functional Programming
Monads
Why can't I check if a 'DateTime' is 'Nothing'?
vb.net
Datetime
Null
Nullable
Nothing
C# HasValue vs !=null
C#
Null
Why null cast a parameter?
Java
Null
Java constructor style: check parameters aren't null
Java
Constructor
Null
Coding Style
How to set null value to int in c#?
C#
.Net
Null
Int
Nullable
How to check if an array is empty in Postgres
Sql
Arrays
Postgresql
Stored Procedures
Null
Replace null with 0 in MySQL
Mysql
Sql
Null
Why do I get null instead of empty string when receiving POST request in from Razor View?
asp.net Mvc
String
Razor
Null
Viewmodel
What does exclamation mark mean before invoking a method in C# 8.0?
C#
Null
Nullable
C# 8.0
Undefined or null for AngularJS
Angularjs
Null
Undefined
Are nulls in a relational database okay?
Database Design
Oop
Null
Capturing output of find . -print0 into a bash array
Arrays
Bash
Null
Find
Delimiter
Why are NULL pointers defined differently in C and C++?
C++
C
Pointers
Null
How to add nil value to Swift Dictionary?
Swift
Dictionary
Null
Optional
Error if don't check if {{object.field}} exists
Variables
Properties
Null
Angular
Can I use NULL as substitution for the value of 0?
C++
C
Pointers
Null
Language Lawyer
Is NULL always false?
C
Null
Pointers
Delete a file named "NUL" on Windows
C
Windows
Null
Cygwin
Why is "null" present in C# and Java?
C#
Java
Null
Check if KeyValuePair exists with LINQ's FirstOrDefault
C#
Linq
Null
How to select rows where column value IS NOT NULL using CodeIgniter's ActiveRecord?
Php
Mysql
Codeigniter
Activerecord
Null
Is it a bad idea if equals(null) throws NullPointerException instead?
Java
Null
Equals
Nullpointerexception
Can constructor return a null object?
Java
Constructor
Null
HashMaps and Null values?
Java
Null
Hashmap
Hashcode
how do you insert null values into sql server
Sql
Sql Server
Null
Standard use of 'Z' instead of NULL to represent missing data?
Sql
Database Design
Null
Standards
Rdbms
SQL query, if value is null then return 1
Tsql
Null
Ssms
Difference between nil, NIL and, null in Objective-C
Objective C
Null
Nsnull
Java map.get(key) - automatically do put(key) and return if key doesn't exist?
Java
Dictionary
Get
Null
Put
NULL value in multi-column primary key
Mysql
Null
Composite Primary-Key
Doctrine 2 OneToMany Cascade SET NULL
Doctrine
Null
Set
One to-Many
MySQL: get MAX or GREATEST of several columns, but with NULL fields
Mysql
Null
Max
What's the point of Guava checkNotNull
Java
Null
Guava
Preconditions
Pandas - check if ALL values are NaN in Series
Python
Pandas
Null
Nan
Series
Null check in VB
vb.net
Null
Runtime Error
Why does .ToString() on a null string cause a null error, when .ToString() works fine on a nullable int with null value?
C#
String
Null
Int
Nullable
How to check multiple objects for nullity?
Java
Null
Nullable
In C#, what happens when you call an extension method on a null object?
C#
Parameters
Null
Extension Methods
Does MySQL index NULL values?
Mysql
Indexing
Null
Best way to check if a character array is empty
C
Arrays
Null
Char
Portably safe to pass NULL/zero to dynamic_cast?
C++
Null
Dynamic Cast
Any simple way to test null before convert an object to string
Java
Null
javax.persistence.NoResultException: No entity found for query
Java
Hibernate
Jpa
Exception Handling
Null
Define a variable and set it to a default value if something goes wrong during definition
Variables
Gradle
Null
Default Value
remove null or undefined from properties of a type
Typescript
Types
Null
Undefined
obj.nil? vs. obj == nil
Ruby
Null
Comparison
Prevent unlist to drop NULL values
List
R
Null
Null safe Collection as Stream in Java 8
Java
Collections
Null
Java 8
Java Stream
Is null check needed before calling instanceof?
Java
Nullpointerexception
Null
Updating integer column with null values in postgres
Postgresql
Null
Sql Update
Alter
How do I return my records grouped by NULL and NOT NULL?
Sql
Null
Group By
ListView getChildAt returning null for visible children
Android
Listview
Null
What is the difference between NULL, '\0' and 0?
C
Pointers
Null
Using COALESCE to handle NULL values in PostgreSQL
Sql
Database
Postgresql
Null
Coalesce
How can I change NULL to 0 when getting a single value from a SQL function?
Sql
Tsql
Null
Sum
Check chains of "get" calls for null
Java
Null
Nullpointerexception
Is there a null std::ostream implementation in C++ or libraries?
C++
Null
Ostream
Is NULL always zero in C?
C
Pointers
Null
Zero
Check if AJAX response data is empty/blank/null/undefined/0
Javascript
Jquery
Ajax
Null
Is Objects.requireNonNull less efficient than the old way?
Java
Performance
Null
What does i:nil="true" mean?
Xml
Null
Xml Nil
PHP considers null is equal to zero
Php
Null
How to create variable argument methods in Objective-C
Objective C
Xcode
Format
Variadic Functions
Null
getElementById() returns null even though the element exists
Javascript
Html
Null
Getelementbyid
What is the PHP syntax to check "is not null" or an empty string?
Php
Variables
Null
Conditional Statements
MySQL foreign key to allow NULL?
Mysql
Database
Null
Foreign Keys
Referential Integrity
Check if object exists in JavaScript
Javascript
Debugging
Variables
Null
Undefined
How will a C# switch statement's default label handle a nullable enum?
C#
Null
Switch Statement
Nullable
Allow null in unique column
Sql
Postgresql
Database Design
Null
Unique Constraint
Handling null values in protobuffers
Java
Null
Protocol Buffers
HQL "is null" And "!= null" on an Oracle column
Oracle
Hibernate
Null
How to test for $null array in PowerShell
Powershell
Null
Postgresql turn null into zero
Sql
Postgresql
Null
Max
What is the difference between null and undefined in JavaScript?
Javascript
Null
Undefined
Referring to the null object in Python
Python
Python 3.x
Object
Null
Interpreted Language
Check if a string is null or empty in XSLT
Xslt
Null
Xslt 1.0
Xslt 2.0
static variable null when returning to the app
Android
Android Activity
Static
Null
PostgreSQL: Create an index to quickly distinguish NULL from non-NULL values
Sql
Postgresql
Indexing
Null
Not equal <> != operator on NULL
Sql
Sql Server
Tsql
Null
Checking if this is null
C++
Pointers
Null
Hibernate: How to set NULL query-parameter value with HQL?
Java
Hibernate
Null
How can a not null constraint be dropped?
Mysql
Null
Constraints
How to convert empty spaces into null values, using SQL Server?
Sql Server
Null
Is Empty
IllegalArgumentException: Parameter specified as non-null is null
Android
Exception
Null
Kotlin
Unique key with NULLs
Mysql
Database
Null
Relational Model
Ruby check if nil before calling method
Ruby
Null
How to check for null in a single statement in scala?
Scala
Null
Inline
How can I check if 'grep' doesn't have any output?
Bash
If Statement
Null
Grep
Hiding nil values, understanding why Go fails here
Pointers
Go
Interface
Null
How to replace all Null values of a dataframe in Pyspark
Dataframe
Null
Pyspark
how to check if a datareader is null or empty
C#
Null
Sqldatareader
How to select an empty result set?
Sql
Mysql
Stored Procedures
Null
Resultset