Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [null]

Null means *nothing* or *unknown*, depending on context. Please use the "sql-null" tag for SQL specific questions.

0 votes
2 answers
41 views

C# member to check property for null and set it with async function if needed?

This is NOT a failure of anything. I'm just trying to determine how to write c# more elegantly. In a C# project I find I am doing an awful lot of if (null != classX.user || await classX.getUserAsync())...
Greg L.'s user avatar
  • 13
0 votes
0 answers
46 views

Why does this VARBINARY value become 0x00 in a SELECT statement? [closed]

My procedure is failing because a variable (VARBINARY) is said to be NULL. When I print this variable, I see an understandable value. However, when I select the variable, I get 0x00 (or some version). ...
Boogie's user avatar
  • 1
-3 votes
1 answer
34 views

Double ?? mark with dynamic variablename?.variable [duplicate]

Can someone please explain the below code. Here, name ?? stands for nullable types if its null then what is data?.name? string name = req.Query["name"]; dynamic data = JsonConvert....
Imaya Thiruppathirayar's user avatar
0 votes
1 answer
47 views

Finding specific value in a list in java using a scanning loop: returns numberformat exception

I am trying to find a specific string in a text file. Here is what I have using [Java] Lists: import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; ...
Kit's user avatar
  • 3
2 votes
2 answers
41 views

How to handle the possibility of expected null properties in a LINQ were clause?

Consider the following C# Code Fragment: public class Person { public int Id { get; set;} public string? Name { get; set;} public string? Description {get; set;} } List<Person>? ...
William Holmes's user avatar
0 votes
0 answers
63 views

Blazor C# Error: One or more errors occurred. (Value cannot be null. (Parameter 'value'))

I am new to Blazor Development. Does any know how to solve this issue? I only have this issue if I login as a user. When I try to step into the code. It stop after the ApplicationDbContext class ...
Tou Thao's user avatar
0 votes
1 answer
28 views

Elasticsearch: how to drop the properties from being stored if the value is null

We have an index template with can up to 150 properties. Some properties will have value as null depend on the field called "RecordType". How Elasticsearch can drop the properties having ...
ylng's user avatar
  • 1
0 votes
1 answer
27 views

Null characters in between my log_file.txt in Powershell [duplicate]

Usually this txt shows the logs of my program running. Nothing was changed and it started now spitting out null characters. Not really sure what to do. Is this any unicode issue? The code does not ...
Sazid Ludi's user avatar
0 votes
1 answer
26 views

How to compare a column is not null in superset ( Metrics -> Custom SQL)?

I want to create a metric of Pivot 2: Actual/Target. But some Target is null. I wrote in Custom SQL as below but it did not work. I changed it to != Null or !=0, but it still does not work. Please ...
Diem Phuc Tran's user avatar
-1 votes
0 answers
25 views

When i try to update value of the code if i leave this field null it encounter an error and program exit [duplicate]

When i choose update product and leave warrantyPeriod blank this error occur Enter new warranty period (leave blank to keep unchanged): Exception in thread "main" java.lang....
Thái Thiện Nhân's user avatar
0 votes
1 answer
31 views

The return type 'Null' isn't a 'University', as required by the closure's context

I'm stuck trying to test my code. but I get the error that "The return type 'Null' isn't a 'University', as required by the closure's context. Any suggestions on how to fix this? Here's the code: ...
janea's user avatar
  • 3
0 votes
0 answers
11 views

nifi 1.23.2 string type value is not allowed to be defaulted to null

nifi was upgraded to 1.23.2 and we found a potential incompatibility issue: We have some messages serialized based on this schema: {"name":"myKey","type":"string&...
Jin Ma's user avatar
  • 199
0 votes
2 answers
91 views

How to test a C pointer for whether it points to a struct

I have a linked list structure struct node { int data; node next; } and a function struct node *insert_sorted (struct node *nodes, int d) { // todo } I need to implement this so that, given a ...
Addem's user avatar
  • 3,821
0 votes
0 answers
17 views

Populating Null in an INT column of MySQL Table [duplicate]

I have data as follows in my csv: ID, NAME, fav_digit 1 abc 2 2 xyz 3 pqr 7 Now, I have created the table in the MySQL table using the data types Int, Varchar(7), Int respectively. ...
Devarapalli Vamsi's user avatar
-2 votes
2 answers
44 views

Handling Null Values For Unmatched Rows in a Left Join SQL

Sorry for the horrible first part of the question. Tried to explain with example in second part. I have two tables a, b. I am left joining these two tables based on three columns to retrieve a column '...
Mohammad Raziuddin Chowdhury's user avatar

15 30 50 per page
1
2 3 4 5
1091