xwiki/xwiki-platform — comment on commit 690009b4335b16dfdc9cf3a4cb78faf2fdf5c3e1
File: xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-script/src/main/java/org/xwiki/extension/script/internal/ExtensionManagerScriptService.java line 354
By sdumitriu:

In case of an error, this line would return an unusable plan, since any further action on the object would just throw a NPE. It would be better to return null above, IMO.