Fix null reference in pg-cursor #handleError - #2333
Conversation
|
Can you explain the events that result in |
|
The simplest case I can reproduce the issue: The console output: |
|
To expand on this, the usecase would be autocomplete scenario. The autocomplete (throttled) input makes request to server to get potential autocomplete. But as user type more characters, you'd want to terminate previous query immediately to save on resources. |
|
Hi @charmander , just wondering if there's anything wrong with my pull request? |
|
@juneidysoo I haven’t had the chance to investigate yet, but whatever the bug is, it’s unlikely the PR as written now (changing the code to ignore a state it didn’t previously expect) is the correct fix for it. |
|
Yeah if you can include a test case which reproduces the issue then we can look at the code, suggest any changes, etc...but almost without exception I don't merge code without tests. Having to maintain contributed code for years after its landed and the contributor has moved on is incredibly difficult without test coverage. |
No description provided.