New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[management-api] : fix empty analytics data #394

Closed
tcompiegne opened this Issue Jan 4, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@tcompiegne
Member

tcompiegne commented Jan 4, 2017

If there is no API/Application analytics, we have the following error :

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at io.gravitee.management.service.impl.AnalyticsServiceImpl.convert(AnalyticsServiceImpl.java:119)
	at io.gravitee.management.service.impl.AnalyticsServiceImpl.hitsBy(AnalyticsServiceImpl.java:67)
	at io.gravitee.management.rest.resource.ApiAnalyticsResource.hits(ApiAnalyticsResource.java:57)```

@tcompiegne tcompiegne added the type: bug label Jan 4, 2017

@tcompiegne tcompiegne added this to the 1.2.0 milestone Jan 4, 2017

@tcompiegne tcompiegne self-assigned this Jan 4, 2017

tcompiegne added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Jan 4, 2017

brasseld added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Jan 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment