Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Checking the balance of a new name crashes the program

已关闭 适合新手
#2 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
blockchain, java
领域
blockchain, cli

调研方向

用 mvn compile exec:java、菜单选项 5 以及一个从未收到过 coins 的名字进行复现。找到该选项使用的余额查找;未知名字目前会得到 null,随后出现 NullPointerException。将缺失的名字视为余额 0,使程序打印 0 而不是崩溃。当该路径不再抛出异常,并且仍能为拥有 coins 的名字报告真实余额时即完成。

由索引模型根据 Issue 内容生成。

描述

bug good first issue

Run mvn compile exec:java, choose 5 (check a balance) and type a name that hasn't received any coins.

The whole program crashes with a NullPointerException. Someone with no coins should just have a balance of 0.

主要语言
Java
星标
0
派生
3
平均合并
1 天 18 小时
30 天内合并 PR
14

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

techcsispit/mini-chain 的其他 Issue

查看 techcsispit/mini-chain 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。