if (parkingParty.getFirstRequest().getFirstCarPropertyRegistryFileName() != null) {
if (parkingParty.getFirstRequest() != null && parkingParty.getFirstRequest().getFirstCarPropertyRegistryFileName() != null) {
    public ActionForward prepareEditParking(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {        IUserView userView = SessionUtils.getUserView(request);        ParkingParty parkingParty = userView.getPerson().getParkingParty();        request.setAttribute("parkingParty", parkingParty);        DynaActionForm parkingForm = (DynaActionForm) actionForm;        if (parkingParty.getFirstRequest().getFirstCarPropertyRegistryFileName() != null) {            parkingForm.set("ownVehicle1", false);        } else {            parkingForm.set("ownVehicle1", true);        }        if (parkingParty.getFirstRequest().getSecondCarPropertyRegistryFileName() != null) {            parkingForm.set("ownVehicle2", false);        } else {            parkingForm.set("ownVehicle2", true);        }        return mapping.findForward("editParkingRequest");    }