String[] arr = {};try { arr = request.getParameterValues("nombre_CheckBox"); if (arr == null) arr = null;} catch (NullPointerException e){ arr = null; }