Attempting to do some error checks

I hit NullPointerException for the buses for some reason.