Object reference not set to an instance of an object

This forum is for all Flare issues related to the WebHelp Mobile target and skins
Post Reply
Sue
Propeller Head
Posts: 15
Joined: Fri Jun 04, 2010 3:15 pm

Object reference not set to an instance of an object

Post by Sue »

I've been able to successfully build my mobile output for a few weeks now (it's even integrated into the mobile app), and suddenly this morning I'm getting an error and can't compile.

I keep getting this compile error:

Object reference not set to an instance of an object

This error occurs right after I get the error message "Can't find system stylesheet C:\Program Files (x86)\MadCap Flare V6.1\Flare app\Resources\Schemas\htm\htm.css"

Unfortunately, the htm folder doesn't exist within my schemas folder so I can't take a look at it.

The only change I made this morning was to try to change the color of the toolbar in my skin. I backed that change out. I noticed some other posting about encountering this error in webhelp when empty or hidden properties existed in the stylesheet, but when I took a look at my stylesheet in a text editor I couldn't find anything. Any ideas?

Thanks.
nickatwork
Sr. Propeller Head
Posts: 457
Joined: Thu Sep 16, 2010 6:31 am
Location: London

Re: Object reference not set to an instance of an object

Post by nickatwork »

Have you made any cahnges to your stylesheet recently? I had that exact error on mine and it was caused by styles being used in my output that I was hiding in the styles toolbar, this put a "mc-disabled: true;" tag around the style and that caused the error. Flare usually throws these in at the end of the stylesheet so I'd have a look there first.
Sue
Propeller Head
Posts: 15
Joined: Fri Jun 04, 2010 3:15 pm

Re: Object reference not set to an instance of an object

Post by Sue »

Thanks for the suggestion. I opened my stylesheet in a text editor and couldn't see anything unusual. I hadn't made many changes to my stylesheet so I deleted it and created a new one and I still get this error. I'm opening a support case. Thanks!
rob hollinger
Propellus Maximus
Posts: 661
Joined: Mon Mar 17, 2008 8:40 am

Re: Object reference not set to an instance of an object

Post by rob hollinger »

Sue,
This should have been answered.
There were <span> tags outside the Body tags in a topic. Removing those tags should have fixed the issue.

Generally to locate the problem topic, when the compiler quits and produces an error, click OK on the error message.
Then in the compiler window, click on the Messages tab.
The last topic listed is generally the topic that contains the issues.
Rob Hollinger
MadCap Software
techwriter31
Propellus Maximus
Posts: 551
Joined: Wed Mar 05, 2008 10:50 am

Re: Object reference not set to an instance of an object

Post by techwriter31 »

I received the same error, but in my case it seemed to be tied to a specific conditional tag. If I set the tag to include = no error. If I set the tag to exclude = error. I needed to exclude these topics and I was only using this as a test project to provide a mobile webhelp example, so I simply deleted the unneeded tags and topics and no more error.
Kellie
Post Reply