Checking for null dependencies.