Android : The operator == is undefined for the argument type(s)

on Sunday, March 29, 2015


having an issue checking null element in integer array.



The operator == is undefined for the argument type(s) int, null



onCreateView



private String[] FilePathStrings;
private File[] listFile;

....
listFile = file.listFiles();

FilePathStrings = new String[listFile.length];


if(listFile.length == null){

// Do Something

}else {

// Do Something
}

0 comments:

Post a Comment