public boolean checkLocationServicesStatus() {
    LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);//이 부분이 에러입니다.
    return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)           
|| locationManager.isProviderEnabled
(LocationManager.NETWORK_PROVIDER);
}
 
에러를 잡을 수 있는 방법이 있을까요?