Context.getSystemService on a null object reference和 IllegalArgumentException: You cannot stata load
报错一:Context.getSystemService on a null object reference如图:我出错的原因是没有对Context实例化报错二:IllegalArgumentException: You cannot start a load on a null Context我出错的原因是在fragment中使用图片加载Glide时上下文对象用的是 context,修改为 getContext 后回复正常问题总结:没有对Context实例化使用了不恰当的context