Created attachment 163751 [details]
If a fragment-host guest module is loaded before its host, ModuleManager may throw IllegalArgumentException and stop the application launch.
In Util class, fragments, which are not part of the enabled modules may cause NPE; simple check added.
Please review the diff.
The patch looks fine and it can be integrated.
Fixed in jet-main#d65fc7287cac
Integrated into 'main-silver', will be available in build *201703100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Svata Dedic <firstname.lastname@example.org>
Log: #269971: Fixed potential exceptions for late enabled or disabled module fragment