Is language support optional

Vladimir Prus ghost at cs.msu.su
Tue Oct 25 11:03:07 UTC 2005


Hi!
I wonder if in KDevelop, language support is optional or not.
Specifically, here's a part of src/multibuffer.cpp:

    KDevLanguageSupport *language = API::getInstance()->languageSupport();
    setOrientation( language->splitOrientation() );

If 'language' is 0, the code will crash, and I've managed to crash it in 
practice. Should the code check for language==0, or language==0 is 
"impossible" event?

- Volodya




More information about the KDevelop-devel mailing list