Fix Race Condition Nullpointer
This commit is contained in:
parent
cd9bf24cad
commit
3ed65ad03e
1 changed files with 3 additions and 1 deletions
|
@ -81,6 +81,8 @@ public class ResourceViewProcessing extends PaneUpdaterThread
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
updateUpdaterTextArea = new SearchableRSyntaxTextArea();
|
||||||
|
|
||||||
final Decompiler decompiler = resourceViewPanel.decompiler;
|
final Decompiler decompiler = resourceViewPanel.decompiler;
|
||||||
|
|
||||||
//perform decompiling inside of this thread
|
//perform decompiling inside of this thread
|
||||||
|
@ -89,7 +91,7 @@ public class ResourceViewProcessing extends PaneUpdaterThread
|
||||||
//set the swing components on the swing thread
|
//set the swing components on the swing thread
|
||||||
SwingUtilities.invokeLater(() ->
|
SwingUtilities.invokeLater(() ->
|
||||||
{
|
{
|
||||||
updateUpdaterTextArea = (SearchableRSyntaxTextArea) Configuration.rstaTheme.apply(new SearchableRSyntaxTextArea());
|
Configuration.rstaTheme.apply(updateUpdaterTextArea);
|
||||||
resourceViewPanel.textArea = updateUpdaterTextArea;
|
resourceViewPanel.textArea = updateUpdaterTextArea;
|
||||||
|
|
||||||
resourceViewPanel.panel.add(updateUpdaterTextArea.getScrollPane());
|
resourceViewPanel.panel.add(updateUpdaterTextArea.getScrollPane());
|
||||||
|
|
Loading…
Reference in a new issue