I forgot to add a not null check after I added the "file:///" prefix to make the URL() constructor call in the parser happy.