我在清单中添加了supportRTL后,我的android应用程序因nullpointexception而崩溃

时间:2015-07-10 13:43:53

标签: java android nullpointerexception android-support-library

我正在学习android并且最近想在我的应用程序中尝试rtl。除了在我的manifest.xml中添加了android:supportRTL =“true”之外我什么都没改变,当我点击开始活动时我的应用程序崩溃了。

我得到的错误是:

 public function postLogin(Request $req){
    //Validate input
    $this->validate($req,[
        'email' => 'required', 'password' => 'required'
    ]);

    $credentials = $req->only('email','password');

    if($this->auth->attempt($credentials,$req->has('remember'))){
        return redirect('articles');
    }
    return redirect('auth/login')
                ->withInput($req->only('email'))
                ->withErrors([
                    'email' => 'Something wrong'
                ]);
}

 public function getLogout(){
    $this->auth->logout();
    return redirect('articles');
}

为什么会崩溃?我没有在网上找到任何类似的问题。

0 个答案:

没有答案