Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit f1ad205

Browse files
committed
Fix crash while setting load address to the UI
1 parent 2d357a8 commit f1ad205

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

atos/ATSAppDelegate.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ @interface ATSAppDelegate()
2222

2323
@implementation ATSAppDelegate
2424

25-
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
26-
[[NSUserDefaults standardUserDefaults] registerDefaults:@{@"NSApplicationCrashOnExceptions" : @YES}];
27-
25+
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
2826
[self.window orderOut:self];
2927

3028
self.welcomeWindowController = [[ATSWelcomeWindowController alloc] init];

atos/ATSMainWindowController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ - (void)symbolParser:(ATSSymbolParser *)parser didFindValidSymbol:(NSString *)sy
111111
[self.textView.textStorage addAttributes:@{NSForegroundColorAttributeName : [NSColor ats_highlightedTextColor]}
112112
range:[self.textView.string rangeOfString:symbol]];
113113

114-
[self.loadAddressTextField setStringValue:parser.loadAddress];
114+
if (parser.loadAddress) {
115+
[self.loadAddressTextField setStringValue:parser.loadAddress];
116+
}
115117
}
116118

117119
@end

atos/atos-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.3</string>
18+
<string>0.3.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>1</string>
22+
<string>2</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.developer-tools</string>
2525
<key>LSMinimumSystemVersion</key>

0 commit comments

Comments
 (0)