My Oracle Support Banner

The getDevice() Method is Returning "null" (Doc ID 2437445.1)

Last updated on MARCH 19, 2019

Applies to:

Oracle WebCenter Sites - Version 12.2.1.1.0 and later
Information in this document applies to any platform.

Symptoms

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.

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.