HomePhabricator

Check if content instanceof JCDataContent before calling getLicenseObject

Authored by Mholloway on Aug 28 2018, 5:01 PM.

Description

Check if content instanceof JCDataContent before calling getLicenseObject

The JCSingleton method getTitleLicenseCode calls getLicenseObject
for any JCContent, but the getLicenseObject method is only defined for
JCDataContent and subclasses. It is not defined for JCObjContent, which
is used in Wikipedia Zero. This adds a check that the content object is
an instance of JCDataContent.

Bug: T203006
Change-Id: I50250b483b408161c70abc1d8590d61e601a9868

Details

Committed
MhollowayAug 28 2018, 5:20 PM
Parents
rEJSCaf1a00f9fa8a: Merge "Mark some raw HTML messages"
Branches
Unknown
Tags
Unknown
References
refs/changes/68/455868/3
ChangeId
I50250b483b408161c70abc1d8590d61e601a9868