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

Updating ban message #45

Closed
Jonathan-5 opened this issue May 4, 2016 · 6 comments
Closed

Updating ban message #45

Jonathan-5 opened this issue May 4, 2016 · 6 comments
Assignees

Comments

@Jonathan-5
Copy link

Steps to reproduce

  1. Ban a minge for prop spamming and trying to crash your server
  2. Go to bans
  3. Add the reason because you rushed to ban them

Expected behavior

Error will pop up the first time in console.

Actual behavior

Lag for a sec but works...

Error(s) in player's console, if any

[ERROR] addons/ulx/lua/ulx/xgui/bans.lua:200: attempt to index local 'bandata' (a nil value)

  1. ShowBanDetailsWindow - addons/ulx/lua/ulx/xgui/bans.lua:200
    1. DoDoubleClick - addons/ulx/lua/ulx/xgui/bans.lua:14
    2. OnClickLine - lua/vgui/dlistview.lua:478
      1. unknown - lua/vgui/dlistview_line.lua:93

Version

ULib v2.60
ULX v3.70

@Nayruden
Copy link
Member

To confirm, you ban the user without a reason, then go to update the reason from XGUI?

@Jonathan-5
Copy link
Author

Found it!
When you update a ban and you're done you click "Update" and then you hit the "Close" button but the tricky thing was and I just found how the error happens, RIGHT AFTER you hit close and click on another item IN THE LIST OF BANS the ERROR will SHOW, every time...

@Jonathan-5
Copy link
Author

Actually it looks like the error pops up when you click the same ban in the list, not another one

@Jonathan-5
Copy link
Author

[ERROR] addons/ulx/lua/ulx/xgui/bans.lua:200: attempt to index local 'bandata' (a nil value)
  1. ShowBanDetailsWindow - addons/ulx/lua/ulx/xgui/bans.lua:200
   2. DoDoubleClick - addons/ulx/lua/ulx/xgui/bans.lua:14
    3. OnClickLine - lua/vgui/dlistview.lua:478
     4. unknown - lua/vgui/dlistview_line.lua:93


@Jonathan-5
Copy link
Author

While you hit "update" and "close" the ban list starts to refresh but as soon as you click on the same ban you edited, before its done refreshing the error will happen.

@SticklyMan
Copy link
Member

Fixed in 5713687

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

No branches or pull requests

3 participants