-1
Logcat
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean)' on a null object reference
Adaptor code
@Override
public View getView(int i, View convertView, ViewGroup parent) {
View vista = convertView;
if(vista==null)
vista = inflater.inflate(R.layout.elemento_lista, parent, false);
TextView titulo = (TextView) vista.findViewById(R.id.tvTitulo);
TextView duracion = (TextView) vista.findViewById(R.id.tvDuracion);
TextView director = (TextView) vista.findViewById(R.id.tvDirector);
ImageView imagen = (ImageView) vista.findViewById(R.id.ivImagen);
RatingBar calificacion = (RatingBar) vista.findViewById(R.id.ratingBarPel);
titulo.setText(datos[i][0]);
director.setText(datos[i][1]);
duracion.setText("Duração " + datos[i][2]);
imagen.setImageResource(datosImg[i]);
calificacion.setProgress(Integer.valueOf(datos[i][3]));
return vista;
}