The COL_RESOURCE_TYPE param may be null or empty, so we want to check it first before modifying the resourceType variable.
This repo was forked from Stella Bellum. Please credit them (notably Cekis) if you use any of the work here.