求解!getSystemService(java.lang.String)' on a null object reference

问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图

public static boolean checkGPSIsOpen() {
LocationManager locationManager = (LocationManager) App.getContext().getSystemService(Context.LOCATION_SERVICE);
if (locationManager == null)
return false;
return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
}

public class App extends Application {
private static Context sContext;
@Override
public void onCreate() {
super.onCreate();
sContext = this;
}
public static Context getContext() {
return sContext;
}
}

运行结果及报错内容

img

我的解答思路和尝试过的方法
我想要达到的结果

App.getContext()是NULL