The getDevice() Method is Returning "null"
(Doc ID 2437445.1)
Last updated on MARCH 19, 2019
Applies to:Oracle WebCenter Sites - Version 188.8.131.52.0 and later
Information in this document applies to any platform.
When executing the following code in a controller extending BaseController:
Device myDevice = getDevice();
System.out.println("Device Id " +myDevice.getId());
It fails because myDevice is null.
This is based on a code sample provided in the Samples site.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document