Skip to content
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

Avoid ArrayIndexOutOfBoundsException in PageEnrichments #813

Open
istreeter opened this issue Aug 9, 2023 · 0 comments
Open

Avoid ArrayIndexOutOfBoundsException in PageEnrichments #813

istreeter opened this issue Aug 9, 2023 · 0 comments

Comments

@istreeter
Copy link
Contributor

I have seen an example of this exception:

ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
    at com.snowplowanalytics.snowplow.enrich.common.enrichments.web.PageEnrichments$.parseCrossDomain(PageEnrichments.scala:62)
    at com.snowplowanalytics.snowplow.enrich.common.enrichments.EnrichmentManager$.$anonfun$getCrossDomain$1(EnrichmentManager.scala:616)
    at com.snowplowanalytics.snowplow.enrich.common.enrichments.EnrichmentManager$EStateT$.$anonfun$fromEither$1(EnrichmentManager.scala:150)
    at com.snowplowanalytics.snowplow.enrich.common.enrichments.EnrichmentManager$EStateT$.$anonfun$fromEitherF$1(EnrichmentManager.scala:158)
    at scala.Function1.$anonfun$andThen$1(Function1.scala:57)
...
(20 additional frame(s) were not displayed)

The exception is coming from this line, presumably when the _sp query parameter is an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant