Questions tagged [nul]

NUL is the abbreviation for the null character in several character sets

NUL has a value of 0 and is often written as the escape sequence \0. It is used as a terminator in standard strings.

179 questions
0
votes
3 answers

Gson isJsonObject() throws NullPointerException

I have the following code: final JsonObject source = source.toJson(); final JsonElement relatedSpace = source.get("myField"); if(relatedSpace.isJsonObject()){ //do something } isJsonObject() does return instanceof JsonObject; according the the…
KPrince36
  • 2,886
  • 2
  • 21
  • 29
0
votes
1 answer

my jsp page is returning null values

Hello my jsp page is returning null attributes. Each time I fill in the form I get "All fields must be filled out" error. Here is my code: Jsp code <%@ page pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"…
0
votes
1 answer

How to set internal wall clock in a Fortran program?

I use Fortran to do some scientific computation. I use HPC. As we know, when we submit jobs in a HPC job scheduler, we also specify the wall clock time limit for our jobs. However, when the time is up, if the job is still writing output data, it…
zlin
  • 195
  • 2
  • 11
0
votes
1 answer

C reading a file with null in it

I'm working on a data file that contains a fixed number of characters followed by a colon and then a number. All of the first four characters can be anything from all nulls to all (char)255s. However, when trying to read it, I'm having trouble…
SailorCire
  • 548
  • 1
  • 7
  • 24
0
votes
1 answer

Getting null pointer exception when loading data from sqlite database to baseadapter in android

I having a listview in which i have fetch the values from sqlite the values which i have fetched from sqlite are stored in base adapter where i have used condition to check the strings has values or not but still it shows me the null pointer…
Ramesh R
  • 300
  • 4
  • 18
0
votes
0 answers

Nil check not functioning as expected

I'm working on a Dictionary extension that seems to be doing some odd things. The below playground replicates the issue I'm seeing. If you start a new playground in XCode, you should be able to just paste this in and see the output and the issue.…
steventnorris
  • 5,656
  • 23
  • 93
  • 174
0
votes
0 answers

How to delete a file named NUL on an ASP.NET server

Let's start by saying that I have an account on a ASP.NET hosting company. And about 2 weeks ago I got a malicious files uploaded to my website, and it has this name 'nul.doc.asp'. I tried to delete it and I couldn't because it's named NUL. I…
Remy Jouni
  • 43
  • 6
0
votes
4 answers

How to store NUL output of a program in bash script?

Suppose there is a directory 'foo' which contains several files: ls foo: 1.aa 2.bb 3.aa 4.cc Now in a bash script, I want to count the number of files with specific suffix in 'foo', and display them, e.g.: SUFF='aa' FILES=`ls -1 *."$SUFF"…
xlwang
  • 3
  • 2
0
votes
1 answer

leave datetime picker returns 1 / 1 / 0001 12:00:00 AM in c#

I define this in my class public DateTime? LineCheckSubmitDateTime { set; get; } I need to initialize this variable using my gridview But sometimes i need to leave this value to be null ,But when i leave it it returns 1 / 1 / 0001 12:00:00 AM so…
Ehsan Akbar
  • 6,977
  • 19
  • 96
  • 180
0
votes
1 answer

Ignoring all null records while inserting data in mysql table

I created a table(tbldemo) with 22 columns using a "create table" statement in mysql, when trying to insert the data from a .csv file using "Load data infile" statement it's giving me the error, Now how do I ignore the rows whose entire row is null…
Deepesh
  • 820
  • 1
  • 14
  • 32
0
votes
1 answer

Why getchar() works int these two cases differently?

I am writing little program for encoding characters and I have a problem with reading NUL characters maybe also with another ones. My problem is that getchar in this code somehow ignores the NUL characters entered by CTRL + @ . while ((numberOfRead…
c0ntrol
  • 908
  • 2
  • 9
  • 14
0
votes
3 answers

Best practice to declare character array in C

I have to read data from a device which is 4 bytes long so that I have declared array like char data[4] = {0}; I will parse this as per index and guarantee to stop at index 3. data[0]..data[3] In this case there is no room for NUL('\0'). I want…
SD.
  • 1,432
  • 22
  • 38
0
votes
2 answers

argc / argv affects null byte in arrays?

Why is it that the following: #include int main(int argc, char *argv[]) { char array[3] = {'1', '2', '3'}; printf("%s\n", array); return 0; } produces 1238À§Wˇ ("123" + some random chars) as expected, while the same code…
toxefa
  • 283
  • 2
  • 10
0
votes
2 answers

Why can't HTML contain a NUL character? (converted to 0xFFFD / "%EF%BF%BD")

For a special value, I've tried the HTML , but it seems that the NUL character is not interpreted in HTML. I'm getting �. I'd like to know why, and what other unusual UTF-8 characters besides NUL I may have…
700 Software
  • 85,281
  • 83
  • 234
  • 341
0
votes
0 answers

How to enter NUL character through keyboard

How to enter NUL character through keyboard. Example, like for for ESC character we are using ctrl+Esc. For your info: I'm using win 2008 OS.
Sam 333
  • 61
  • 2
  • 8