Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return null instead of crashing when no solution is found #41

Merged
merged 2 commits into from
May 9, 2024

Conversation

sven-strothoff
Copy link
Contributor

When no solution can be found cubejs crashes while trying to access null.

This happens when maxDepth is set too low for the current scramble.
To reproduce this bug just set it to 1 (see also the added test).

I usually don't use CoffeScript, so I hope the syntax is ok. Otherwise, feel free to edit it. :)

@ldez ldez added the bug label May 24, 2019
@tarasovladislav
Copy link

Hi, any fix for the bug above? When trying to solve unsolvable cube, the process never stops

@ldez ldez force-pushed the feature/no-solution-found branch from 076d8c5 to f97a7ac Compare May 9, 2024 12:36
@ldez ldez merged commit 6b3da49 into ldez:master May 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants