It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree does not start anymore (Null pointer)

Marc Sep 28, 2017

SourceTree does not start anymore.

I redownloaded the newest version from the website, but it suffers the same problem.

The log file says:

ERROR [2017-09-28 09:56:32,317] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2017-09-28 09:56:32,443] [1] [SourceTree.App] [OnStartup] - Failed to start
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)
   bei SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
   bei SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)
   bei SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)
   bei SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()
   bei SourceTree.AppRoot.RunPreFlightChecks()
   bei SourceTree.AppRoot.OnStartup(StartupEventArgs e)
   bei SourceTree.App.OnStartup(StartupEventArgs e)

1 answer

0 votes
Ana Retamal Ortiz Atlassian Team Oct 02, 2017

Hi Marc, this is a known issue, they were talking about it on this thread. To solve it, navigate to the config file location (C:\Users\{USERNAME}\AppData\Local\Atlassian\SourceTree.exe_{RANDOM_GUID}\2.3.1.0\user.config) and find the following line:

<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String"> <value>True</value> </setting>

Make sure that value is set to True.

Let us know if it worked for you!

Cheers :)

Ana

Marc Oct 02, 2017

Hi Ana,

thanks for the pointer!

This setting was not specified in the configuration file at all, hence the NullReferenceException. Maybe a default value should be used in this case :)

Well, I can confirm that after adding this setting, the NullReferenceException no longer occurs and SourceTree starts successfully again.

Thanks

Marc

Ana Retamal Ortiz Atlassian Team Oct 02, 2017

I'm glad to hear that, Marc! Have a nice day :D

Ana

Timo Keilbach Oct 23, 2017

I had the same Issue. After adding the missing setting in the config file, SourceTree started as usual! Thank's

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

459 views 0 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you