Skip to content

修复返回boolean时的空指针异常#283

Merged
hcsp-bot merged 1 commit intohcsp:masterfrom
thomaszzzzz:master
Oct 6, 2021
Merged

修复返回boolean时的空指针异常#283
hcsp-bot merged 1 commit intohcsp:masterfrom
thomaszzzzz:master

Conversation

@thomaszzzzz
Copy link
Copy Markdown
Contributor

修复返回boolean时的空指针异常

@hcsp-bot
Copy link
Copy Markdown
Contributor

hcsp-bot commented Oct 6, 2021

🎉 感谢提交Pull Request!请稍等片刻,我们已经将其提交到CI进行检查,一旦有结果会立即通知您!
不过,我们发现你在这个仓库中还打开了其他的Pull Request:

#282

我们不鼓励同时打开多个Pull Request,请集中精力于现在的这个Pull Request,谢谢!:pray:


// 当灯亮时返回true,灭和未知状态返回false
public boolean isOn() {
if(on==null)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'if' 结构必须使用大括号 '{}'。
'if' 后应有空格。
'==' 后应有空格。
'==' 前应有空格。

public boolean isOn() {
if(on==null)
return false;
else
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'else' 结构必须使用大括号 '{}'。

@hcsp-bot
Copy link
Copy Markdown
Contributor

hcsp-bot commented Oct 6, 2021

恭喜你,你的提交 17f7e4f 已经通过我们的CI检查:Your tests passed on CircleCI!

👍 它会被自动merge后revert。请不要骄傲,继续挑战!

点击这里查看模范代码

@hcsp-bot hcsp-bot merged commit 6052672 into hcsp:master Oct 6, 2021
hcsp-bot added a commit that referenced this pull request Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants