#fixed code
                             public static DivTag field(FormLayout layout, String name, String desc, FieldType type, Object[] options,
			Object value) {
		desc = U.or(desc, name);

		String inputId = "_" + name; // FIXME

		Object inp = input_(inputId, name, desc, type, options, value);
		LabelTag label;
		Object inputWrap;

		if (type == FieldType.RADIOS || type == FieldType.CHECKBOXES) {
			inp = layout == FormLayout.VERTICAL ? div(inp) : span(inp);
		}

		if (type == FieldType.CHECKBOX) {
			label = null;

			inp = div(label(inp, desc)).classs("checkbox");

			inputWrap = layout == FormLayout.HORIZONTAL ? div(inp).classs("col-sm-offset-4 col-sm-8") : inp;

		} else {
			if (layout != FormLayout.INLINE) {
				label = label(desc).for_(inputId);
			} else {
				if (type == FieldType.RADIOS) {
					label = label(desc);
				} else {
					label = null;
				}
			}

			if (layout == FormLayout.HORIZONTAL) {
				label.classs("col-sm-4 control-label");
			}

			inputWrap = layout == FormLayout.HORIZONTAL ? div(inp).classs("col-sm-8") : inp;
		}

		DivTag group = label != null ? div(label, inputWrap) : div(inputWrap);
		group.classs("form-group");
		return group;
	}
#vulnerable code 
                             public static DivTag field(FormLayout layout, String name, String desc, FieldType type, Object[] options,
			Object value) {
		desc = U.or(desc, name);

		String inputId = "_" + name; // FIXME

		Object inp = input_(inputId, name, desc, type, options, value);
		LabelTag label;
		Object inputWrap;

		if (type == FieldType.RADIOS) {
			inp = layout == FormLayout.VERTICAL ? div(inp) : span(inp);
		}

		if (type == FieldType.CHECKBOX) {
			label = null;

			inp = div(label(inp, desc)).classs("checkbox");

			inputWrap = layout == FormLayout.HORIZONTAL ? div(inp).classs("col-sm-offset-4 col-sm-8") : inp;

		} else {
			if (layout != FormLayout.INLINE) {
				label = label(desc).for_(inputId);
			} else {
				if (type == FieldType.RADIOS) {
					label = label(desc);
				} else {
					label = null;
				}
			}

			if (layout == FormLayout.HORIZONTAL) {
				label.classs("col-sm-4 control-label");
			}

			inputWrap = layout == FormLayout.HORIZONTAL ? div(inp).classs("col-sm-8") : inp;
		}

		DivTag group = label != null ? div(label, inputWrap) : div(inputWrap);
		group.classs("form-group");
		return group;
	} 
                            #location 34 
                            #vulnerability type NULL_DEREFERENCE