16,359 questions
-5
votes
1
answer
30
views
BigQuery: How to replace 0 values with NULL in a column?
I’m trying to clean a BigQuery weather dataset where missing values were entered as 0. My UPDATE query to replace 0 with NULL is throwing an error. How can I correctly convert these zeroes to null ...
3
votes
5
answers
259
views
Why does strlen(NULL) cause a compile-time warning, while my custom ft_strlen(NULL) only crashes at runtime?
I'm trying to reimplement the standard strlen function in C, and I'm closely replicating its behavior. I defined my function based on standard C declaration for strlen:
size_t ft_strlen(const char *s);...
0
votes
1
answer
43
views
How can I fix error Notice: Trying to access array offset on value of type null in Prestashop 1.7.8.11
I´m configuring Prestashop 1.7.8.11 and when I click in the Checkout for proccess to payment, I recive this error:
in 5e15b4d1179cdfd15539bcc9dbefe763da3b3d2b_2.file.cart-summary-totals.tpl.php line ...
0
votes
0
answers
16
views
Tableau geojson map not showing with null rows
In Tableau I have a geojson file that has coordinates for a building and all the rooms inside. I also have occupancy data for each room every half hour period. I have joined the data sources in ...
0
votes
1
answer
74
views
Null exception in XAML [closed]
This isn't so much a problem, but rather an annoyance... I've put together a conditional class to show different views dependent on which radio button is selected. It works as expected, but I can't ...
0
votes
1
answer
68
views
PostgreSQL `null` value in JSON column not filtered by `IS NOT NULL` as expected
(PostgreSQL version: 15.10)
I am trying to query a table with a nullable json-type column. Here is the simplified table description:
db=> \d tablename
Table "public....
0
votes
0
answers
62
views
KQL mv-expand and null data
I am writing some KQL queries in Azure Resource Graph. In the simplified example below I have 3 VMs I want to extract the datadisks info from. In the below code VM1 has 0 data disks, VM2 has 6 and VM3 ...
1
vote
1
answer
28
views
Null checks for record constructor arguments in Groovy
We are in the Groovy universe. Let's say I have a record like follows:
record Person(String firstName, String lastName, String city) {}
What is the shortest way to make sure that none of the three ...
0
votes
0
answers
53
views
Why the destructor pointer is null in construction vtable?
My code is below:
class GrandParent {
public:
GrandParent() {}
virtual ~GrandParent() {}
int grandparent_data = 100;
};
class Parent1 : virtual public GrandParent {
public:
Parent1() {}...
0
votes
1
answer
52
views
Realtime Database structure creation fails – values disappear or produce errors
I'm attempting to manually create base data structures in the Realtime Database for a project called “Viral Content Platform.” The platform is being built to support campaign creation, sharing, and ...
1
vote
1
answer
72
views
Why does assigning a node path to a variable only show null?
I have a function that randomly picks a fish from a list and an AnimatedSprite2d with the same names for animations but I'm getting the error Attempt to call function 'play' in base 'null instance' on ...
1
vote
2
answers
198
views
Python - How to check for missing values not represented by NaN? [duplicate]
I am looking for guidance on how to check for missing values in a DataFrame that are not the typical "NaN" or "np.nan" in Python. I have a dataset/DataFrame that has a string ...
0
votes
1
answer
116
views
Best practices for handling multiple nil/invalid checks without throwing an exception
The following ruby method is expected to return either an array or nil, depending on whether or not the api call was successful.
# @return [Array or nil] - but should not throw error if anything ...
0
votes
1
answer
65
views
Returned Game object is null in unity 6 using C#
I am working on my NPC's ability to detect player within a range. But when I directly refer it in the generated action script, I get a null pointer. I have double confirmed that the player is not null....
1
vote
1
answer
57
views
Inserting data with UCanAccess from big text files is very slow - Processing Nulls
Since am not allowed to comment on the original discussion (Inserting data with UCanAccess from big text files is very slow) because I don't have enough points, am having to start a new one.
I have ...
1
vote
0
answers
38
views
google appscript based webapp is not giving results. frontend is receiving null from the backend, even though the backend is returning valid results [duplicate]
I want to create a simple web app to search a database.
Google Apps Script based webapp is not giving results.
The issue is that the frontend is receiving null from the backend, even though the ...
0
votes
1
answer
74
views
how to fill the variable with missing value when the join fails to find a match in google earth engine
I am working with Google Earth Engine (GEE) and need to perform a left join operation between two image collections:
collection1 (lstDataset), which has 365 elements.
collection2 (NTTempdataset), ...
0
votes
1
answer
118
views
Strange Behavior Compiler Ignoring NULL Check Unless I Print Something in the if Statement [closed]
This is some of the strangest behavior I've ever seen and I have no answer from myself.
I tried -fno-delete-null-pointer-checks while compiling both my game and engine and still the same behavior was ...
0
votes
1
answer
91
views
IntelliJ - ignore "Not-null fields must be initialized" for injected fields
IntelliJ keeps telling me i have to initialize my injected fields. I know a workaround would be to create a ctor and annotate it with @Inject but i dont want to change all of my classes. So is there a ...
0
votes
0
answers
75
views
How to retrieve data from computed motiveWave study?
I'm using MotiveWave SDK to build a new study. I'm able to put values in the dataseries to plot on the chart. By using debug() I can even see the different values of my study lines. However when I try ...
0
votes
1
answer
111
views
Add multiple conditional values to one column [closed]
I'm writing a query designed to check records that exist in 6 different tables for a specific value and, if it's null, indicate that the value is missing (meaning NULL).
However, what I'm struggling ...
-1
votes
1
answer
78
views
PHP MYQSL single insert statement to enter either NULL, or time as datetime value when INSERT statement uses variable? [duplicate]
Apologies up front: Self taught so sometimes I miss something really basic...
I have a JS application where users can enter a time in a form and can revisit the form and edit the time later. The entry ...
0
votes
1
answer
67
views
Modbus.Net TcpClient fails exactly every 6th poll
I implemented a Modbus.Net v1.4.3 client and poll data peridoically in a main program and experience strange behaviour.
Every 6th poll gives:
Data = null
Success = false
ErrorCode = 0
ErrorMsg ...
2
votes
0
answers
103
views
C Programming strtok with NULL values [duplicate]
I am having trouble with strtok function while opening a csv file with the following data:
999999999,AA999999999,20240121,Uimo,Jacob,19910306,,,,,9999999999,Sam,Gok
I have the following code which ...
2
votes
1
answer
68
views
Cast option values directly?
I'm using the postgres-rs crate to retrieve info from a database. The query result gets stored in a postgres::Row where I can read a value at a time with Row::get().
So far so good, but now I want to ...