Checks view

Checks if view != null before getting button source.