Quickfix NPE fixes for vertical ruler. Extract constant and extract
local variable.
Merge pull request #15 from BoykoAlex/NPE_quickfix

Quickfix NPE fixes for vertical ruler. Extract constant and extract