Answer
Reinstalling WebLogic and recreating the project root (re-running the project-root-creation script/process) resolved this specific NullPointerException in practice, even though the build itself was already succeeding — this points to the local server's own WebLogic installation or project-root metadata being in a bad state independent of whether the actual code compiles correctly.