Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
1.0.0-SNAPSHOT
Description
org.apache.olingo.odata2.core.rest.RestUtil's extractAcceptHeaders is not guarding against an NPE for the missing accept headers.
cxf-2.7.x currently returns an empty list in this case, therefore it does not lead to an issue. However, the correct behavior is to return a null in this case.
Therefore, the above method should guard against an NPE for the acceptHeaders variable being null.