I'm assuming this is coming from excavator.js, but as @gausie says, an error in a script shouldn't cause an NPE. There's not much to go on here, but I wanted to get it recorded while I try to further debug.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
KoLmafia...