Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
null
- Page 1
Null Pointer Exception in Java Application – Need Fixing
Programming
Software Development
1 Month Ago
by YashSmith
… class Test { public static void main(String[] args) { String text =
null
; System.out.println(text.length()); // NullPointerException here } } How can I…
Re: Hello Everyone, I'm Ray Brad
Programming
Software Development
1 Month Ago
by Dani
… not a function" and "Cannot read properties of
null
(reading 'includes').) Sorry, I just saw this now. Please [start…
Re: What’s Best Way to Clear File Contents Without Deleting the File in Linux
Hardware and Software
Linux and Unix
1 Month Ago
by Reverend Jim
I'm confused. Since the log file is recreated automatically what is the problem with just deleting it? But if you want to shorten it you could always open it as write (but not append) and write a
null
string to it.
null pointer exception in jdbc
Programming
Software Development
12 Years Ago
by shibu111
null
pointer exception in jdbc how to over come this problem why this
null
pointer exception is comming in jdbc.......
Re: NULL and nullptr and strstr etc
Programming
Software Development
12 Years Ago
by deceptikon
… error every time you used `
NULL
` because there's no implicit conversion from `void*`. `
NULL
` would be completely useless in …that case, so C++'s `
NULL
` fits the C++ version of… a
null
pointer constant rather than the C version…
Re: 'null' is null or not an object
Programming
Web Development
16 Years Ago
by ~s.o.s~
>
Null
also compares to undefined: ( undefined ==
null
) is always true. ...which is often misleading as they stand for two different things and have different types. A better way in almost all cases would be to use the strict comparison operator to get an accurate, type safe result.
Re: NULL and nullptr and strstr etc
Programming
Software Development
12 Years Ago
by rubberman
NULL
is defined in <stdio.h> as `(void*)0`. This can cause problems with some C++ code. With current C/C++ compilers, you are safe to use a simple 0 for
null
values. IE: void* vptr = 0; // ok int* iptr = 0; // ok double* dptr =
NULL
; // not ok, depending upon compiler
Re: 'null' is null or not an object
Programming
Web Development
17 Years Ago
by stymiee
Null
means it is nothing. It has no value or state of any kind.
Re: "Null" Word in csv export
Programming
Software Development
10 Years Ago
by jwenting
NULL
is a real value in SQL, hence it gets exported as a real value. If you want it replaced with something else, adjust the method that writes the output to do the replacement...
Re: NULL
Programming
Software Development
12 Years Ago
by JamesCherrill
… variable refers to String class,having initialised with
null
string..so its value is
null
.. > > You can also define… like Strinf s1 =
NULL
; //It's also java's reserved keyword.. Wrong, wrong, wrong.…that object, it is NOT
null
. Java is case sensitive,
NULL
is not the same as
null
null
is not a Java reserved …
Re: NULL
Programming
Software Development
12 Years Ago
by jalpesh_007
Also you can define
null
value with String s =""; //declares a variable refers to String class,having initialised with
null
string..so its value is
null
.. You can also define like Strinf s1 =
NULL
; //It's also java's reserved keyword..
Re: NULL
Programming
Software Development
12 Years Ago
by JamesCherrill
… variables and expressions that refer to objects or arrays. "
null
" is the special value for those variables or expressions…, but it has not been initialised, so its value is
null
NULL
Programming
Software Development
12 Years Ago
by nazmule27
What is
NULL
? Please answer if know it exactly in java Perspective.
Re: NULL
Programming
Software Development
12 Years Ago
by simrankim
Which
Null
you are looking for, in Java, in Sql, in C++.
Null pointer on building a binary tree
Programming
Software Development
17 Years Ago
by jmasta
… link; //The constructor method public Node() { this.left =
null
; this.right =
null
; this.link =
null
; } public Node(char value, int count) { this.value… = value; this.count = count; this.right=
null
; this.left =
null
; this.link =
null
; } // The set methods public void setLink(Node p…
Null List with an array
Programming
Software Development
13 Years Ago
by fonzi
… ipad Hello windows soap ipad Hello windows soap
null
null
null
null
null
............ This eventually stops and wont let the …// this remove the item from the list objects[index] =
null
; return true;//returns true } } return false; } @Override…
null pointer assignment
Programming
Software Development
15 Years Ago
by rajdey1
…; list *head; public: integer() {head=
NULL
; p=
NULL
; } ~integer() {list *tmp=head; while(tmp!=
NULL
) {tmp=tmp->next; delete(tmp->…->previous=tmp; tmp=tmp->next; tmp->next=
NULL
; tmp->data=*k - 48; k++; } } return i; }…
Re: null pointer assignment
Programming
Software Development
15 Years Ago
by Salem
… list *head; public: integer() { head=
NULL
; p=
NULL
; } ~integer() { list *tmp=head; while(tmp!=
NULL
) { tmp=tmp->next; delete(tmp-&… k++; } else { tmp->next=new(list); if(tmp==
NULL
) { cout<<"No Memory For Allocation"<…
Re: null pointer assignment
Programming
Software Development
15 Years Ago
by rajdey1
… list *head; public: integer() { head=
NULL
; p=
NULL
; } ~integer() { list *tmp=head; while(tmp!=
NULL
) { tmp=tmp->next; delete(tmp-&… k++; } else { tmp->next=new(list); if(tmp==
NULL
) { cout<<"No Memory For Allocation"<…
Re: Null List with an array
Programming
Software Development
13 Years Ago
by fonzi
…soap ipad Hello windows soap
null
null
null
null
null
............ to this true Tomatoes Lettuce Milk Hello ipad Hello windows soap
null
null
null
null
null
............ so i have … union method [CODE] for(Object objects1 = baggie2.getFirst(); objects !=
null
; objects1 = baggie2.getFirst()){ //if baggie1 and baggie2 have same then…
Null Pointer Exception???
Programming
Software Development
14 Years Ago
by coolbeanbob
…// // }//end else if // // else JOptionPane.showMessageDialog(
null
, "Error!"); } public void readFile(){ BufferedReader readBuffer…p = 0; while((strRead = readBuffer.readLine())!=
null
){ System.out.println("readFile first step …
Re: Null Pointer Exception???
Programming
Software Development
14 Years Ago
by coolbeanbob
… update method to display blank form // } // else // JOptionPane.showMessageDialog(
null
, "This is the first record"); //display message to… to next record // updateScreen(); // }//end if // else JOptionPane.showMessageDialog(
null
, "This is the last record!"); //else display message…
Re: Null Pointer Exception???
Programming
Software Development
14 Years Ago
by coolbeanbob
… update method to display blank form // } // else // JOptionPane.showMessageDialog(
null
, "This is the first record"); //display message to… to next record // updateScreen(); // }//end if // else JOptionPane.showMessageDialog(
null
, "This is the last record!"); //else display message…
Null pointer exception ?
Programming
Software Development
12 Years Ago
by nah094020
…(T data) { this.data=data; left=
null
; right=
null
; } } //references the root of tree…;T> someRoot) { if(someRoot.left!=
null
&&someRoot.right!=
null
) { return true; } else { return…
Null pointer Exception
Programming
Software Development
16 Years Ago
by neutralfox
…File file; InputStreamReader in =
null
; OutputStream out =
null
; BufferedReader br =
null
; PrintWriter pw =
null
; String filenm =
null
; String fn; public FTPClient(){… // pw.println(filenm); the first one JOptionPane.showMessageDialog(
null
, "Test .... "); } fis.close(); …
Re: null pointer assignment
Programming
Software Development
15 Years Ago
by lafigueroa
… will get a problem in the destructor [CODE] while(tmp!=
NULL
) { tmp=tmp->next; delete(tmp->previous); } … it is possible that tmp->next is
null
! you could do the following [CODE] while(tmp… !=
NULL
) { list* tmp2=tmp->next; // save tmp->…
Re: null pointer assignment
Programming
Software Development
15 Years Ago
by rajdey1
… will get a problem in the destructor [CODE] while(tmp!=
NULL
) { tmp=tmp->next; delete(tmp->previous); } … it is possible that tmp->next is
null
! you could do the following [CODE] while(tmp… !=
NULL
) { list* tmp2=tmp->next; // save tmp->…
Null Pointer Exception
Programming
Mobile Development
11 Years Ago
by DJ-DOO
… getBestPreviewSize(width, height, parameters); if (size !=
null
) { parameters.setPreviewSize(size.width, size.height); camera.… void startPreview() { if (cameraConfigured && camera !=
null
) { camera.startPreview(); inPreview = true; } } SurfaceHolder.Callback…
null pointer
Programming
Software Development
18 Years Ago
by Noorhiba H.M
…constant 0 in a pointer context is converted into a
null
pointer at compile time. That is, in an initialization… the Unix system call execl takes a variable-length,
null
-pointer-terminated list of character pointer arguments, and is ….3.) It is probably safest to properly cast all
null
pointer constants in function calls, to guard against varargs…
null pointer exception --- urgent
Programming
Software Development
17 Years Ago
by abdulraqeeb33
…private Socket aptsocket=
null
; int c=0; static ResultSet res=
null
; static Connection conn=
null
; static Statement stat=
null
; private static String… servoff=
null
; private static int servoff_port…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC