null Questions
3
Solved
In Java, there have always existed primitive types and references, but not value types.
One of the goals of Project Valhalla is to explore and incubate feature candidates such as value types.
I w...
Reversible asked 8/2, 2018 at 21:14
2
Solved
In the following example that uses JDBC (this question though is not specific to JDBC):
Connection conn = null;
try
{
..... Do the normal JDBC thing here ....
}
catch(SQLException se)
{
if(conn...
Grizel asked 10/11, 2014 at 21:58
4
Solved
I am just getting started on upgrading my code to be php 8.1 compatible. I have many pieces of code where I am passing potentially null values to internal functions.
if (strlen($row) > 0) {
......
2
Solved
CREATE TEMP TABLE wirednull (
id bigint NOT NULL,
value bigint,
CONSTRAINT wirednull_pkey PRIMARY KEY (id)
);
INSERT INTO wirednull (id,value) VALUES (1,null);
INSERT INTO wirednull (id,value) V...
Barrel asked 3/11, 2017 at 13:39
7
Further in my code, I check to see check if an object is null/empty.
Is there a way to set an object to null?
Chandigarh asked 13/6, 2010 at 2:12
3
Solved
In this answer to this question, it was noted that:
If you're going to 'clear' the pointer in the dtor, a different idiom would be better - set the pointer to a known bad pointer value.
and also ...
Macneil asked 24/6 at 19:23
5
Solved
I have the following (highly simplified) XML document that I am reading into my database using the OPENXML function:
<root>
<row>
<bar>123</bar>
</row>
<row>...
Cannula asked 20/5, 2010 at 21:22
10
Solved
I've got the following function:
public static extern uint FILES_GetMemoryMapping(
[MarshalAs(UnmanagedType.LPStr)] string pPathFile,
out ushort Size,
[MarshalAs(UnmanagedType.LPStr)] string Ma...
Doff asked 10/4, 2009 at 1:48
7
7
Solved
What's the easiest and most robust way of altering the .NET DateTimePicker control, to allow users to enter null values?
Fruitage asked 12/11, 2008 at 15:48
9
Solved
I'm using jQuery to get the height of an element.
But if the element doesn't exist, the following code will return NULL:
$height = $('#menu li.active ul').height(); // returns integer or null
Is...
Whalebone asked 2/9, 2016 at 9:14
4
Solved
Is there a setting in hibernate to ignore null values of properties when saving a hibernate object?
NOTE
In my case I am de-serializing JSON to a Hibernate Pojo via Jackson.
The JSON only conta...
Rhumb asked 22/9, 2011 at 15:41
6
I am trying to map nested properties using mapstruct 1.2.0.CR2.
(Example map customer.address.houseNumber to userDTO.homeDTO.addressDTO.houseNo ).
Expectation : I do not want to set the addressDT...
13
I'm not asking if it does. I know that it doesn't.
I'm curious as to the reason. I've read support docs such as as this one on Working With Nulls in MySQL but they don't really give any reason. Th...
4
Solved
Maybe this will be obviously simple for most of you, but could you please give an example how to create similar methods (in Objective-C) and functions in C to create functions like NSString's strin...
Gonococcus asked 26/1, 2011 at 12:41
8
Solved
In my code, is there a shorthand that I can use to assign a variable the value of a object's property ONLY if the object isn't null?
string username = SomeUserObject.Username; // fails if null
I...
6
Solved
I was curious if it's legal in t-SQL to compare a NULL to a value?
For instance, if I have:
WITH ctx AS(SELECT 123 AS n0, NULL AS n1)
SELECT n0 FROM ctx
WHERE ctx.n1 < 130
the WHERE clause i...
Daliladalis asked 26/7, 2012 at 5:4
5
Solved
I want to aggregate the sum of a column, while tracking the presence of NULL values which signal an error condition. E.g., take the table numbers:
# select * from numbers;
n | l
------+-----
1 ...
Laynelayney asked 26/9, 2016 at 13:0
7
I have a list of objects say car. I want to filter this list based on some parameter using Java 8. But if the parameter is null, it throws NullPointerException. How to filter out null values?
Curr...
Pyle asked 1/10, 2015 at 9:36
20
Solved
How do I verify the existence of an object in JavaScript?
The following works:
if (!null)
alert("GOT HERE");
But this throws an Error:
if (!maybeObject)
alert("GOT HERE");
The Error:
m...
Tricotine asked 15/11, 2010 at 17:4
22
Solved
I've been writing JavaScript for quite a long time now, and I have never had a reason to use null. It seems that undefined is always preferable and serves the same purpose programmatically. What ar...
Kingsley asked 7/7, 2011 at 1:1
14
Imagine I have a class Family. It contains a List of Person. Each (class) Person contains a (class) Address. Each (class) Address contains a (class) PostalCode. Any "intermediate" class c...
55
Solved
Is there a string.Empty in JavaScript, or is it just a case of checking for ""?
Urquhart asked 30/9, 2008 at 17:17
8
Solved
I get this message when compiling C++ on gcc 4.3
error: ‘NULL’ was not declared in this scope
It appears and disappears and I don't know why. Why?
Thanks.
8
Solved
Groovy has a nice operator for safe dereferencing, which helps to avoid NullPointerExceptions:
variable?.method()
The method will only be called, if variable is not null.
Is there a way to do t...
Getaway asked 31/10, 2010 at 21:0
1 Next >
© 2022 - 2024 — McMap. All rights reserved.