[JAVA-4103] Fix NPE in UnifiedTest.setUp Created: 14/Apr/21  Updated: 28/Oct/23  Resolved: 14/Apr/21

Status: Closed
Project: Java Driver
Component/s: Test Failure
Affects Version/s: None
Fix Version/s: 4.3.0

Type: Task Priority: Major - P3
Reporter: Valentin Kavalenka Assignee: Valentin Kavalenka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by JAVA-3878 Versioned MongoDB API for Drivers Closed
Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed

 Description   

VersionedApiTest (both synchronous and reactive) fail on many configurations with the following stacktrace:

FAILURE: java.lang.NullPointerException (java.lang.NullPointerException)
java.lang.NullPointerException
	at com.mongodb.client.unified.RunOnRequirementsMatcher.runOnRequirementsMet(RunOnRequirementsMatcher.java:62)
	at com.mongodb.client.unified.UnifiedTest.setUp(UnifiedTest.java:133)

See this patch for more details.



 Comments   
Comment by Githook User [ 14/Apr/21 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Fix NPE in RunOnRequirementsMatcher.runOnRequirementsMet (#693)

JAVA-4103
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/635e3f110c6d4cad429064b9b0a39c1224fe789d

Generated at Thu Feb 08 09:01:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.