Skip to content

Commit

Permalink
fix(application service): get context on app thread
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelhf committed Feb 24, 2023
1 parent de6b146 commit 8a70366
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class TestaustimeApplicationService {

try {
val client = TestaustimeAPIClient(settings.apiBaseUrl, settings.authToken)
val ctx = ContextInformation.getDataContext() ?: return;

ApplicationManager.getApplication().invokeLater({
val ctx = ContextInformation.getDataContext() ?: return@invokeLater;
val project = ctx.getData(CommonDataKeys.PROJECT)
project ?: return@invokeLater

Expand Down

0 comments on commit 8a70366

Please sign in to comment.