Prepared some methods for negative line numbers and null source.