null

NSURLConnection Data broken in asynchronous connection

Hello, I have a NSURLConnection that receives data output from a url pointing to a php script on my server. Most of the time everything works fine and the data is retrieved in its complete form. However, sometimes I receive NULL or broken (ie the bottom half) of data at: - (void)connection:(NSURLConnection *)connection didReceiveData...

how to define null as integer value on mysql server?

I need to allow saving null as integer value on mysql server, how can I do this? ...

strange behavior with 'IN' clause works

i found this site: here its very well described why it works and why not. but my question is a little different. select 'true' from dual where 'test' not in ('test2',''); why does this query not returing a row? is '' handled like null? thx for your help ...

How to check for null value for a double which is taken from a database

I am extracting values from a database. I am extracting a double value from a database using ResultSet rs = ....; while(...){ rs.getDouble("num"); } How do I check if the value of rs.getDouble("num") is a null. Since the value is stored as a (MySQL) double and I want to store it in my JVM as a double, I can't simply use !=null. Wh...

Wasn't there a switch to toggle Oracles empty varchar2 - null behavior?

As everybody working with Oracle knows, it an empty Varchar2 will result in a NULL value when put into a Varchar2 column. I (and a coworker as well) thought we had read about a parameter that could be set in the database to change that behavior and actually differentiate between null values and empty Strings. Is there such a parameter ...

getting null value for particular column, while loading the object.

I have an entity bean which is made using Hibernate annotation. @Entity @org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true) @Table(name="[tbDDE]") public class DElement implements Serializable{ @Column(name = "[ID]", nullable = false, unique=true, updatable=false, insertable=false) @GeneratedValue(strateg...

C++ downcast ( using dynamic_cast ) returns NULL ?

Environment: Linux C++ / Qt 4x I do not understand why the following downcast returns NULL? I pasted base and derived class below. Thanks in advance for any tips or suggestions. -Ed void MainWindow::onRtledaEventHandler(fes::EventArgs eventArgs) { // This cast returns a NULL ? fes::AtsCommandEventArgs* atsCommandEventArgs = d...

Reading empty values in "for" command in a windows batch file

I have a question with the "for" batch command in windows. I have a file called keys.txt which contains this line.. key,value,x86,windows7 I want to parse this line and store the 4 comma seperated variables in 4 variables. I accomplish that by the following windows batch script. for /F "tokens=1,2,3,4* delims=," %%i in (keys.tx...

Using NULL in C++?

Possible Duplicate: Do you use NULL or 0 (zero) for pointers in C++? Is it a good idea to use NULL in C++ or just the value 0? Is there a special circumstance using NULL in C code calling from C++? Like SDL? ...

How to split a string by char 0 / byte 0 / 0x00 / \u0000 in flash

How do I split a string by char 0 / byte 0 / 0x00 / \u0000 in flash actionscript 3 ...

What is best practice on how to handle nulls

In you database and/or code. Do you avoid nulls or do you explicitly program to handle them in your logic? What is best practice on how to handle nulls? ...

LinearLayout height in onCreate is 0

Hello, I'm trying to dynamically adjust the height of my rows depending on the (screen height - my layout height) / list.size. Unfortunately in the OnCreate method the layout height returns null (not so when i call it in an on click listener). Is there another method I can call it in? TIA ...

Multi-Dimensional Arrays--> Null Object Pointers

I am trying to develop a C++ application. Part of the Application is meant to create and initiate some properties of an Object and then store the object in a multi-dimensional array. Problem is after Object creation and storing the objects in the array, retrieving the Object values gives me pointers to NULL. Please see code below for ex...

Throwing ArgumentNullException in constructor?

For a constructor with a single parameter, is it OK to throw an ArgumentNullException inside the constructor if the parameter is null/empty? OR, should it be thrown in the method that actually uses the argument? Thanks. ...

Null items not shown in ComboBox with binding

Hello, I'm having some difficulties with null and a ComboBox in WPF/C#; If a add a null item it is not shown/listed in the ComboBox. Here is de XAML declaration of my ComboBox <ComboBox ItemsSource="{Binding Path=MyList}" SelectedItem="{Binding Path=Type}" /> MyList is declared as public ObservableCollection<Type> MyList...

Can a DateTime be null?

Possible Duplicate: DateTime null value is it possible to set datetime object to null? ...

javascript XMLHttpRequest requestXML is null

Hi there, I'm trying to grab an xml document from a url and then parse it. I am able to open it fine on a browser, but it doesnt seem to work through my javascript. Can anyone help me? function downloadUrl(url, callback) { var request = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : new ...

fluent-nhibernate automapping foriegn key inserts null.

I have a class called Worker public class Worker : BaseEntity { public virtual int WorkerID { get; set; } public virtual string Name { get; set; } public virtual IList<Indemnification> Indemnifications { get; set; } } public class Indemnification : BaseEntity { public virtual int IndemnificationID { get; set; } pu...

ASP.NET MVC: Why do I get null instead of empty string when receiving POST request?

I used to receive empty string when there was no value: [HttpPost] public ActionResult Add(string text) { // text is "" when there's no value provided by user } But now I'm passing a model [HttpPost] public ActionResult Add(SomeModel Model) { // model.Text is null when there's no value provided by user } So I have to use th...

Remove empty array elements

Some elements in my array are empty based on what the user has entered. I need to remove these elements. This is my code to do so: // Remove empty elements foreach($linksArray as $link) { if($links == '') { unset($link); } } print_r($linksArray); But it doesn't work, $linksArray still has empty elements. I have als...