Andrei Freeman (lordandrei) wrote in ijournal,
Andrei Freeman
lordandrei
ijournal

Bug in LJ Controller

LiveJournalController::sendString:

if ((lookup !=1) || (success != 1) {
	// Brings up Error panel (Should be a sheet)
	// returns nil (Expects NSString*)
}

Upon entering LiveJournalController::buildDictionary:
NSString *httpResult; shows non nil initialization. (0x2)

scanner = [NSScanner scannerWithString: inputString]
// properly initializes even though inputString == nil

HOWEVER:

[scanner scanUpToString: @"\n" intoString &httpResult];

Does _not_ change httpResult. Which is still non-nil

a non nil value sent a message, seems to try to execute it.
thus the following [httpResult isEqualToString: @""]

Thus:
Unable to determine target of Objective-C method call (ignoring):
Cannot access memory at address 0x2

[Error: Irreparable invalid markup ('<signal:>') in entry. Owner must fix manually. Raw contents below.]

<PRE>
LiveJournalController::sendString:

if ((lookup !=1) || (success != 1) {
// Brings up Error panel (Should be a sheet)
// returns nil (Expects NSString*)
}

Upon entering LiveJournalController::buildDictionary:
NSString *httpResult; shows non nil initialization. (0x2)

scanner = [NSScanner scannerWithString: inputString]
// properly initializes even though inputString == nil

HOWEVER:

[scanner scanUpToString: @"\n" intoString &httpResult];

Does _not_ change httpResult. Which is still non-nil

a non nil value sent a message, seems to try to execute it.
thus the following [httpResult isEqualToString: @"<foo>"]

Thus:
Unable to determine target of Objective-C method call (ignoring):
Cannot access memory at address 0x2

<Signal: "EXC_BAD_ACCESS">

I tried setting at the beginning of buildDirectory
NSString *httpResult = nil;

However, now the error occurs on the following NSRunAlertPanel
which wants to send httpResult into the alert panel as an argument that's required to be a string.

New logic needs to be placed in to pull the nil case away from the net-alive/bad server case.
</PRE>
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment