When on a system with domain separation, if a user in a sub-domain modifies an application file created in the global domain and then attempts to commit that change to source control, an error occurs and the logs have a stack trace similar to:

worker.5 worker.5 SEVERE *** ERROR *** Error occurred while exporting application
com.glide.sourcecontrol.SourceControlException: java.lang.NullPointerException
at com.glide.sourcecontrol.worker.git.GitSourceControlHelper$ScopedAppPackager.writeMetadataRecords(
at com.glide.sourcecontrol.worker.git.GitSourceControlHelper.writeAppFilesToLocalGitRepo(
at com.glide.sourcecontrol.worker.git.GitExportApplicationWorker.exportApp(
at com.glide.sourcecontrol.worker.ExportApplicationWorker.execute(
at com.glide.sourcecontrol.SourceControlWorker.startWork(
at com.glide.worker.AbstractProgressWorker.startAndWait(
at com.glide.worker.HierarchicalProgressWorker.startAndWait(
at com.glide.worker.BackgroundProgressJob.execute(
at com.glide.schedule.JobExecutor.executeJob(
at com.glide.schedule.JobExecutor.execute(
at com.glide.schedule.GlideScheduleWorker.executeJob(
at com.glide.schedule.GlideScheduleWorker.lambda$process$49(
at com.glide.worker.TransactionalWorkerThread.executeInTransaction(
at com.glide.schedule.GlideScheduleWorker.process(
Caused by: java.lang.NullPointerException
at com.glide.sourcecontrol.worker.git.GitSourceControlHelper.writeToFile(
at com.glide.sourcecontrol.worker.git.GitSourceControlHelper.addFile(
at com.glide.sourcecontrol.worker.git.GitSourceControlHelper$ScopedAppPackager.writeMetadataRecords(
... 14 more

Steps to Reproduce


  1. On a domain-separated instance, in the global domain, create an application w/ tables and application modules
  2. Export the application to source control
  3. Impersonate a user in a sub-domain, like TOP
  4. Modify one of the application modules (notice that it gives you an info message and creates a new file)
  5. Attempt to commit the change to source control

Expected result: Changes are pushed
Actual: Error occurs


  • If you have not received the error described in this PRB, then you can make all the required changes as any user in any domain. When it comes time to commit those changes, do so as a user in the global domain.
  • If you have already received this error, all your source control operations will be blocked due to a related issue documented in PRB916398, please see KB0622533 for workaround.


Related Problem: PRB916363

Seen In

There is no data to report.

Fixed In


Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:35:52