Patch - closes #604. Caused by changes to license handling - reference can now be null in some cases. Defaulting in a string. This may not fix subsequent problems tho