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

[BUG] Reassigning a variable causes a null exception to be thrown #7

Closed
AkramIzz opened this issue Aug 13, 2020 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@AkramIzz
Copy link
Collaborator

Describe the bug
Reassigning a variable causes a null exception to be thrown.

Unhandled exception:
NoSuchMethodError: The getter 'type' was called on null.
Receiver: null
Tried calling: type
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      visitVarAssignment (package:Birb/utils/runtime.dart:504:17)
<asynchronous suspension>
#2      visit (package:Birb/utils/runtime.dart:219:20)
#3      visitCompound (package:Birb/utils/runtime.dart:869:25)
<asynchronous suspension>
#4      visit (package:Birb/utils/runtime.dart:245:20)
#5      main (package:Birb/birb.dart:43:15)
#6      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#7      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

To Reproduce
Steps to reproduce the behavior:

  1. Launch birb shell with the birb command
  2. Type
var x = 1;
x = 2;
  1. Run program with runBirb command
  2. See error

Expected behavior
Expected no error to be thrown

@AkramIzz AkramIzz added the bug Something isn't working label Aug 13, 2020
@Calamity210
Copy link
Owner

Corrected in 4abdc29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants