Skip to content

Change controllers#1

Open
cdruk wants to merge 20 commits intomasterfrom
change_controllers
Open

Change controllers#1
cdruk wants to merge 20 commits intomasterfrom
change_controllers

Conversation

@cdruk
Copy link
Owner

@cdruk cdruk commented May 29, 2018

No description provided.

private Tetris tetris;

public TetrisKeyAdapter(Tetris tetris) {
tetris = this.tetris;

Choose a reason for hiding this comment

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

This is an amazing bug.
I can't figure out how the app works with this line of code here.

Also any unit test of this class would've uncovered this bug.

Copy link
Owner Author

Choose a reason for hiding this comment

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

It doesn't work. It just opens and then throws a null pointer if I try to do anything.
I figured that the bug was in how I set up the class, I'm just not sure what I did wrong.

Choose a reason for hiding this comment

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

The bug is literally on this line.

I won't elaborate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants