Version and Platform (required):
- Binary Ninja Version: 5.0.7290
- OS: macOS
- OS Version: 15.4.1
- CPU Architecture: x64
Bug Description:
A k/v stored in session data does not get populated properly in bv.session_data until after it has been accessed once via the attribute with the same name.
Steps To Reproduce:
- Open a database
- Open Python console
- Set a session k/v:
bv.set_default_session_data('foo', 'bar')
- Try to retrieve the k/v via
get: bv.session_data.get('foo')
- Notice that the return value is
None
- Try to retrieve the k/v via the attribute:
bv.session_data.foo
- Notice that the return value is
bar
- Try to use
get again: bv.session_data.get('foo')
- Notice that now the return value is as expected:
bar
Expected Behavior:
Both ways of acceessing bv.session_data should return the same information.
Screenshots/Video Recording:

Version and Platform (required):
Bug Description:
A k/v stored in session data does not get populated properly in
bv.session_datauntil after it has been accessed once via the attribute with the same name.Steps To Reproduce:
bv.set_default_session_data('foo', 'bar')get:bv.session_data.get('foo')Nonebv.session_data.foobargetagain:bv.session_data.get('foo')barExpected Behavior:
Both ways of acceessing
bv.session_datashould return the same information.Screenshots/Video Recording: