That happens in automatic tests, where creating/building/deleting projects happens many times.
Testing is ensured by DependentProjectTest.testCleanDependentProject. There should be no NullPointerExceptions at accessing type with getResource().getFullPath().