Questions tagged as 'null'

2
answers

Update the value obtained in an EditText

Next, I'm having a problem getting the value in an EditText and displaying it in a TextView. The value displayed when using a string, is "null", and when using int, it is 0. I believe this happens because the value being collected, is what appea...
asked by 08.05.2014 / 15:53
1
answer

Request ajax with unexpected return

I have an ajax code that makes a request in a php file, and in this php file has only one    echo json_encode ('test') In return, the string "teste"NULL , always with this NULL is returned, after any return. $.ajax({ url:...
asked by 12.05.2018 / 15:59
1
answer

Function to check if all elements of an array of variables are null

Suppose I have an array where each element of this array is a variable that stores a string inside it. Example: error{ [nome] : null; [sobrenome] : "sobrenome inválido"; [estado] : null; } I would like the program to ident...
asked by 28.09.2018 / 15:52
1
answer

How to check if there is any null attribute in the object?

I have a Person class and I want to check if there is any null attribute, either because I can not save a person with null attribute. I want to avoid a lot of if . Is there any way to do this? public void salvar(Pessoa p) throws Exception...
asked by 30.03.2016 / 18:07
2
answers

Passing null parameter to a method

It is possible to pass / receive null parameters in Java. In C # I know it's possible using ? in type. public DateTime Teste(DateTime? exemplo){...} In this case the example I know can come null , in Java is this possible in...
asked by 05.11.2014 / 18:34
2
answers

Advantage of nulling a variable in Android

Assigning the value of null to a variable in Android can improve application performance? As far as I know, in Java we have the Garbage Collector, and on Android the activity cycle of Activities and Fragments. Problem: In a cla...
asked by 27.07.2017 / 14:05
1
answer

Difference between NULL, empty and blank Python

I am making a Data Quality that receives a list with data from a Database and I have two rules: Null fields: Fields that are filled with the word NULL Blank / empty fields: Fields that come in blank or empty For the NULL rule I a...
asked by 15.05.2017 / 18:26
4
answers

How to bring records of a LEFT JOIN even if it does not obey WHERE?

For example, I have tabela_A : cod nome 1 stack 2 overflow 3 stackoverflow and tabela_B : cod_tabela_A ano mes valor 1 2016 1 100 1 2016 2 115 2...
asked by 04.03.2016 / 17:42
1
answer

GPS on Android - Map = null

I'm making an app for people with addresses. Every time I open the map by setting the initial location with the cell phone's GPS, the app hangs and closes. [UPDATE] In analysis to the code I noticed that the variable "map" is receiving null v...
asked by 20.05.2015 / 21:12
1
answer

Returns Excel in List C # is returning null

This code reads a Excel file and throws a list, the problem that is occurring is it is returning null , as if there was nothing in it Excel , but the column names are correct: string PathConn = "Provider=Microsoft.ACE.OLEDB.12...
asked by 01.10.2014 / 17:18