Reference to AudioProcessorEditor::processor is null

I’ll probably embarrass myself completely because I’m missing something obvious, but here is my problem:

//ed is an AudioProcessorEditor* 
if (ed)
    {
        AudioProcessor &proc = ed->processor;
        if (proc.wrapperType == AudioProcessor::wrapperType_AAX)
            return 0;
    }

I get a crash because &proc is a nullptr, although when the code breaks there, ed is a valid pointer and ed->processor (a public reference to AudioProcessor in JUCE’s AudioProcessorEditor class) is living happily in its address in memory. How can that be?