You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2025/07/15 16:50:00 UTC
[jira] [Created] (SLING-12862) Possible NPE in DistributionEvent.fromEvent(Event)
Konrad Windszus created SLING-12862:
---------------------------------------
Summary: Possible NPE in DistributionEvent.fromEvent(Event)
Key: SLING-12862
URL: https://issues.apache.org/jira/browse/SLING-12862
Project: Sling
Issue Type: Bug
Components: Content Distribution
Reporter: Konrad Windszus
The event being generated in https://github.com/apache/sling-org-apache-sling-distribution-core/blob/04fa537b02bf2579f29fca43100dfdaa641ac938/src/main/java/org/apache/sling/distribution/event/impl/DefaultDistributionEventFactory.java#L50 does not set properties
# DistributionEventProperties.PACKAGE_ID
# DistributionEventProperties.DISTRIBUTION_TYPE
# DistributionEventProperties.DISTRIBUTION_PATHS
in all cases leading to NPEs when dereferencing those in https://github.com/apache/sling-org-apache-sling-distribution-api/blob/90c4de72ce5b1ba2f95bb17aab748389d1748a7b/src/main/java/org/apache/sling/distribution/event/DistributionEvent.java#L92
--
This message was sent by Atlassian Jira
(v8.20.10#820010)