[GODRIVER-456] Creating an index with nil Keys panics Created: 09/Jun/18  Updated: 28/Oct/23  Resolved: 12/Jun/18

Status: Closed
Project: Go Driver
Component/s: Administrative Commands
Affects Version/s: None
Fix Version/s: 0.0.7

Type: Bug Priority: Major - P3
Reporter: Eric Daniels (Inactive) Assignee: Roland Fong
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I'd expect this to error instead.



 Comments   
Comment by Roland Fong [ 12/Jun/18 ]

https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/414658

Comment by Githook User [ 12/Jun/18 ]

Author:

{'username': 'rfblue2', 'name': 'Roland Fong', 'email': 'rfblue2@gmail.com'}

Message: Throw an error if IndexModel Keys is nil

GODRIVER-456

Change-Id: I89843f6fcbfd23bffa46cef6c7abe3949ccc1c4c
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/6ef364fc467daaa8ddee45dc4bc4b420e2f36e3f

Comment by Githook User [ 12/Jun/18 ]

Author:

{'username': 'rfblue2', 'name': 'Roland Fong', 'email': 'rfblue2@gmail.com'}

Message: Throw an error if IndexModel Keys is nil

GODRIVER-456

Change-Id: I89843f6fcbfd23bffa46cef6c7abe3949ccc1c4c
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/6ef364fc467daaa8ddee45dc4bc4b420e2f36e3f

Generated at Thu Feb 08 08:34:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.