Thanks @Petra. Based on @jcl's comment above, History should be initialized to HistoryFolder's value, therefore should not be an empty pointer, therefore should not crash! It appears that History is in fact not being initialized...