Fix crash on importing Java code attached to bug 368453: The example uses the…

Authored by okellogg on Jan 11 2020, 3:10 PM.

Description

Fix crash on importing Java code attached to bug 368453: The example uses the global scope and JavaImport crashes on adding objects in the global scope without prior defined Java package.

umbrello/codeimport/import_utils.{h,cpp}

  • Add function globalScope() returning the package of the global scope.

umbrello/codeimport/nativeimportbase.cpp

  • In function parseFile() do not push a null pointer as the global scope; instead, push Import_Utils::globalScope().

CCBUG:368453

Details

Committed
okelloggJan 11 2020, 3:10 PM
Parents
R139:2a01d5346b7c: Followup to commit 0459a73 addresses comment #2 :
Branches
Unknown
Tags
Unknown