Questions tagged [null]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

null Value from request header is breaking a python code

I have a post API where client need to pass either of 2 possible parameters. When I am doing a check for if not None value is present it is failing because for some weird reasons I get null value for ...
user3452558's user avatar
0 votes
0 answers
28 views

My CSV dataset has no blanks but df.isnull().sum() keeps saying there are null values

I'm trying to learn how to clean my CSV dataset which has two columns, 'word' & 'misspelling'. The raw dataset comes from birkbeck.dat. When I run df.isnull().sum() to check if there is any null ...
michi's user avatar
  • 1
0 votes
1 answer
33 views

How to match this strange null value

I encountered a very strange character that will not be displayed in my redshift table , but when I upload the data to tableau as a csv file, an error will be reported I opened this file and found ...
Phenix's user avatar
  • 1
0 votes
1 answer
43 views

Typescript: Checking disjoint union with extra null-checks

I'm using a disjoint union to represent different states a payment can be in our typescript codebase. So I assert it's type first with an if in order to access it's properties, but when I check ...
Pietro Carrara's user avatar
-1 votes
0 answers
25 views

java.util.properties writing \u0000 in file

I have a property file with some hardcoded keys and writing to a filename.properties file. try { FileOutputStream fos = new FileOutputStream(filename); Properties props = new ...
Karthick S's user avatar
-4 votes
1 answer
38 views

What is the purpose of using "Null" as a condition into IF statements? [closed]

I'd like to create a timer using JavaScript but I had this problem when I wanted to understand the code: What is the purpose of writing this code in if statements : let [seconds, minutes, hours] = [0, ...
失敗者此人's user avatar
0 votes
1 answer
37 views

How to throw an exception if String array is null? [duplicate]

Basically, I want to throw a new TruckException if the String array parameter materials is null when we create a new Truck via its constructor. What should I do in the if statement to verify if the ...
Nicholas Spektor's user avatar
0 votes
1 answer
30 views

Python Dataframe: If Value in Column Equals String AND Value in Second Column is Null, Replace the Null Cell With Another String

I have the following sample python dataframe below: Type Value A sesame B A C tea A bun The code to create the table is below: import pandas as pd df = pd.DataFrame({'Type':["A","...
PineNuts0's user avatar
  • 4,916
0 votes
0 answers
20 views

Can't render my items in to my html file with javascript

HI everyone i'am having a issue in javascript I have to files in html and use one javascript for both but i'am getting this issue that it says selectors.cartItems: null here's my code: const ...
Ngala's user avatar
  • 1
-3 votes
0 answers
16 views

The object of the class is becoming null when testing the same class, I tried all the examples given google but nothing has worked out

In the constructor of ModernAppService, this.routerServiceCaller = routerServiceCaller is giving null instead of obect while testing authTest(), Can anyone please suggest where is the mistake, and let ...
pushpa's user avatar
  • 1
0 votes
1 answer
40 views

Optional null with Apache Camel to get header parameters

Good morning. Currently I am developing an API in Apache Camel in which I have to use queryParameters for the query and some parameters may be mandatory and others not, so I need to handle in case I ...
Cesar Justo's user avatar
0 votes
1 answer
14 views

gorm randomly returned nil for a count query

For paging purposes, we have two queries running concurrently, the main query fetches the items (limit to the page size) and the other query runs in a goroutine which queries the total count of items ...
gongqin's user avatar
  • 65
1 vote
1 answer
11 views

How to address the DolphinDB error: The function [nullFill] expects 2 argument(s), but the actual number of arguments is: 1?

For the following script, DolphinDB reports the error: The function [nullFill] expects 2 argument(s), but the actual number of arguments is: 1 . sqlCol(zfill_col, nullFill(0), zfill_col)) How to ...
jinwandalaohu's user avatar
1 vote
0 answers
34 views

Elastic Search returning null after some time

Elastic Search starts returning null after some time. I have written a go client which will send a request to send a request to my self hosted elastic-search cluster. After debugging for a while, came ...
Tarun Datwani's user avatar
-2 votes
0 answers
60 views

Data inserted in database but value is NULL (I am using name spacing on naming the table and its fields)

Can somebody help me please? In my office they're using Ms. Access for work and i just try to developing a new webapp using php ci 3. there are some problem. So i am just inserting data using ci 3. ...
IMAM IHSANI's user avatar
1 vote
1 answer
39 views

Object List can't be null and I can't use cast because it's null in Flutter

I'm trying to pass a List in a loop to retrieve the strings and show them in a button, and this is happening: final List<Map<String, Object>> perguntas = [ { 'texto': '...
Raphael Wesley's user avatar
0 votes
1 answer
27 views

count nulls in Pandas dataFrame [duplicate]

I want to add a row to my pandas dataFrame that will state how many nulls each column has i tried to use r=result.isna().sum().T.reset_index() but for some reason it fail and or not doing it correctly ...
dave's user avatar
  • 21
0 votes
0 answers
27 views

could not invoke RNFusedLocation.getCurrentPosition null in react native

I only got this error and other people can run in their laptop for this project why does I only face this issue? We all are together cloning from git this project
Myat Thiri's user avatar
0 votes
2 answers
84 views

Back and forward fill null values in a Spark Dataframe using pyspark

I have a Spark dataframe where I have to create a window partition column ("desired_output"). This column has to back fill not-null values if there is no not-null first in the sort order ...
ShamilS's user avatar
  • 1,452
-1 votes
1 answer
80 views

Passing NULL to a function (NOT a pointer) [closed]

I want to know what would happen if I pass NULL to a function that is expecting a struct. The way I have things set up (which may be problematic), it is entirely possible for my "print a struct&...
Plum's user avatar
  • 1
1 vote
1 answer
47 views

flutter: get variable type of widget.[variable]

I'm new on flutter, then sorry if my question is basic. The class TelaDados is called inside the class TelaPrecos and it has two attributes, one of them is numeroSerie. Inside the class _TelaDados i ...
kleber's user avatar
  • 33
0 votes
1 answer
24 views

getElementById returns null in JavaScript page building

I created the structure in JavaScript. I do not use HTML. I have a function that creates the structure and returns the root pane. function createEmptyChartPane (chartId) { let divelem = document....
Peter Horvath's user avatar
-1 votes
2 answers
45 views

coalesce vs. concat functions with NULL values

This is my table: enter image description here in my table i should use SELECT Title+' '+FirstName+' '+MiddleName+' '+LastName as FullName from employees Where BusinessEntityID IN (1,2,4) But as a ...
Adele's user avatar
  • 1
0 votes
0 answers
34 views

Databricks Autoloader resucues an all null column

We are parocessing some txt files to parquet using Azure Functions. The parquet files are then read by Databricks Autoloader. In order for the Autoloader to read values that are blank/empty in the ...
Mehdi Jafari's user avatar
0 votes
0 answers
20 views

Why is this codeigniter database return value null?

CodeIgniter 4, I have the following Controller code: $product_tier = $this->SiteModel->getProductTierByPCUID($site->id, $p->uid); with the following model code: public function ...
Ping's user avatar
  • 311
0 votes
3 answers
66 views

Why does typescript think I have an Error when it can only be null?

I have this situation where Typescript is not behaving how I expect (n.b. I can't switch on strictNullChecks for the whole project): const error = new Error("I'm and error"); const textError ...
AncientSwordRage's user avatar
1 vote
1 answer
51 views

simple way to check 2 variables at once for null or empty

Seeking a simple way (ideally a single line of code) to check if either of 2 variables is empty something like below, however, this doesn't work... if ([string]::isnullorempty(var1,var2)) {"empty&...
Darren's user avatar
  • 67
-1 votes
1 answer
36 views

Attempt to invoke virtual method 'android.content.AttributionSource android.content.Context.getAttributionSource()' on a null object reference

I'm trying to access, the functions in the AllowingAccessCamera class but I'm getting the above error, but when I test the AllowingAccessCamera code on its own it works fine. package com.example....
Bertrandho's user avatar
0 votes
0 answers
28 views

NestJs / Typeorm - null value in column "userId" of relation "Article" violates not-null constraint

I have 2 entities: Article and User. I defined a manyToOne relation in article, one user may have many articles. I also defined both the relation and the relationId column in the article schema: ...
Thiago Dias's user avatar
-1 votes
2 answers
76 views

Cannot invoke "java.util.Map.getOrDefault(Object, Object)" because null

I'm having trouble accessing the values from a dictionary. I'm using double storedDistances = dictionary.getOrDefault(lnglat, Double.POSITIVE_INFINITY) which returns positive infinity if no match is ...
CoolCoder's user avatar
1 vote
0 answers
28 views

php page prints null passing data through angularjs

Good morning! I'm trying to pass an array from angularjs to php. I need to print the data on the php page and not return it to the function in angular js. On the php page it prints null but in the js ...
Gregory Carmo's user avatar
-1 votes
0 answers
59 views

Why does tointeger function returns nil in Lua?

Very simple prolem, but i dunno what to do. I usually write in c++ but now I also need to learn Lua. I just cannot understand why math.tointeger() returns nil when i enter a decimal number without odd ...
Dedulya 777's user avatar
0 votes
0 answers
46 views

Unity Google Play Games plugin v11.01 Authorization code (token) is null

After successfully logging into the account, I am trying to get an authorization token for the backend. But it is constantly empty. Is there some code missing, or maybe it's the sha-1 fingerprints or ...
Nik's user avatar
  • 19
0 votes
1 answer
26 views

I want food data from an API to be viewed with nutrients detail in my screen

when I click on the food I want to see its nutrients the app load then give me an empty screen as provided down, I need the nutrients to be shown on the screen without giving null. This is my detail ...
PlayzAhmed's user avatar
-1 votes
1 answer
57 views

ExpressJS PUT request body data from FormData is always null

Every time I submit a PUT request to my API through a form on React, the request body always ends up being empty and I'm not entirely sure what's happening to the data. const handleEdit = async (e) =&...
huytruong's user avatar
0 votes
1 answer
54 views

R: Ho to convert `"NULL"` into `NULL`?

How do you convert a string that says NULL ("NULL") into an actual NULL value in R? I am getting an envvar that contains either a string or "NULL" (also a string) and my R code is ...
Someone2's user avatar
  • 461
-1 votes
1 answer
56 views

why bad access error exception comes in this code [duplicate]

Why does my code throw an exception? The code defines a class called Graph which represents a graph. A graph is a data structure that consists of nodes and edges. Nodes represent the vertices of the ...
Vishwa Mars's user avatar
-1 votes
1 answer
41 views

Null to lowercase fails on local, but not on staging. Help me to understand?

Faced the problem that I cannot understand and it itches my mind. I have a code, that was running fine for 3 weeks. Then for whatever reason it started to crash today and show an error. Which is ...
Volodymyr RT's user avatar
1 vote
1 answer
70 views

potential null deference warning

From one of the more highly voted answers here: Read whole ASCII file into C++ std::string And with a newer compiler (gcc), given this code to read a file into a string: std::ifstream t("file.txt&...
code_fodder's user avatar
  • 15.5k
0 votes
0 answers
60 views

How do I quickly migrate my flutter project to null safety?

My question is not about how to upgrade my Flutter or Dart versions... I've tried to avoid null safety for the longest time, because I don't see the problem with the concept of "null", my ...
Cedric's user avatar
  • 570
0 votes
0 answers
21 views

Cannot read property 'undefinedProperty'

I was getting this error Error Message: "TypeError: Cannot read property 'undefinedProperty' of null" Tried this and this saved my life! if (myObject && myObject.undefinedProperty) { ...
rupal modi's user avatar
0 votes
1 answer
29 views

using null in Oracle (with regexp)-very slow

trying to figure out what I can do to expedite a query as when I attempt to return value based on NOT being null- it takes forever to return the observations and I need to kill the job. The regexp ...
Lawrence Block's user avatar
0 votes
0 answers
43 views

(Getting file url)Spring Boot entity returns null despite data in the database

I'm working on implementing a profile image upload and display feature. In my service layer, I've created a method: public UserDto getUserProfileImage(Principal principal) However, when I use this ...
yjoos's user avatar
  • 51
0 votes
0 answers
43 views

AWS Dynamoose (v3.2.1) does not allow null values to be inserted in the table

I upgraded the Dynamoose library from 1.11.1 to 3.2.1 in my Nodejs application. The following new configuration was done to create DynamoDB instance. const dynamoose = require("dynamoose"); ...
Keerthana Hemachandran's user avatar
0 votes
0 answers
35 views

How to remove the nulls that show up in the table that I created from my calculated fields

Nulls that show up in the table that I created from my calculated fields, I made calculated fields from already existing date columns called target and forecast dates. This is how the original data ...
Arsalaan Saiyed's user avatar
1 vote
2 answers
46 views

SQL QUERY - Provide a student/parent list. Formatted child name, parent name 1, parent name 2. If a child doesn’t have a parent, just display null

I am working on an SQL problem for a class - "Provide a student/parent list. Formatted child name, parent name 1, parent name 2. If a child doesn’t have a parent, just display null." The ...
CShep878's user avatar
0 votes
4 answers
83 views

How can I know if a column contains empty cells in Google Sheets?

I'm probably missing something because it seems like a basic question to me but I couldn't find anything related online. Context: I'm creating a spreadsheet to keep track of my expenses which is a ...
tooMuchLagWillKillYou's user avatar
0 votes
1 answer
41 views

Null condition not showing output

struct node *position(int key) { struct node *p1 = head; while (p1->info != key && p1 != NULL) { p1 = p1->link; } if (p1 == NULL) printf("...
Risher322's user avatar
0 votes
0 answers
42 views

Whats the diffrence between gcNull and clNone value to the Color property in Delphi?

Adding gcNull or clNone value to the Color property on for example a TWebPanel has the same effect at runtime. So my question is: In what scenario would one use gcNull instead of clNone? Or clNone ...
Gorhin Stroebel's user avatar
0 votes
0 answers
6 views

All row corresponding to null value rows are disappeared after using CAST or SAFE_CAST function in BigQuery

I have issue with CAST or SAFE_CAST a table in BigQuery from string into INT64 or FLOAT64. I have a csv file which contains timestamp %m/%d/%Y %I:%M:%S %p such as 10/25/2023 03:42:00 PM So that file ...
Anh Đỗ's user avatar

1
2 3 4 5
325