8000 Avoid ArrayIndexOutOfBoundsException in PageEnrichments · Issue #813 · snowplow/enrich · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Avoid ArrayIndexOutOfBoundsException in PageEnrichments #813
Open
@istreeter

Description

@istreeter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0