Closed KangLin closed 7 months ago
YES. you are return before instance menu.
At 2024-01-30 09:54:31, "Yuhang Zhao" @.***> wrote:
How could menu be null?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
I don't think so. If we are accessing a null pointer, we would experience a crash already, but that didn't happen.
简单的说,你没有考虑异常情况。
这个“异常情况”本不存在,是你非要加return造成的。可以看出你是在本地测试一些东西,那么你在本地修改就好了,不需要提交到这个仓库。
How could menu be null?