magefree / magefree/mage

Miss null check on cantBeAttachedBy usage

Open
#12,130 0 comments 0 reactions 0 assignees View on GitHub
refactoring
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Search code by: `cantBeAttachedBy` — it uses target pointer without null check.

![IMG_0203](https://github.com/magefree/mage/assets/8344157/808d5af5-5ecb-4119-927a-1c982281c22f)

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the codebase for `cantBeAttachedBy` and inspect how its target pointer is used. Confirm the null case shown in the issue and make the usage safe when the target is absent; the issue is done when that case no longer causes the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.