dragome-sdk icon indicating copy to clipboard operation
dragome-sdk copied to clipboard

Annotation empty Array crash

Open xpenatan opened this issue 7 years ago • 0 comments

Having a empty annotation array and trying to get the array from the field to check if the array contains something is crashing

	@Retention(RetentionPolicy.RUNTIME)
	@Target({ ElementType.FIELD, ElementType.METHOD })
	public @interface TestAnnotation
	{
		int [] test() default {};
	}

	@TestAnnotation() // or  @TestAnnotation( test = {} )
	float testVar= 1.0f;

image

xpenatan avatar May 29 '17 02:05 xpenatan