Community
Participate
Working Groups
Build Identifier: In this method DwarfInfoReader calls .next() on a Iterator called lineEntries, this can result in NoSuchElementExceptions occurring. The paradigm used in the code is the check if return value is null paradigm which is incorrect for iterators. The patch fixes this by using hasNext() to perform the same logical operation correctly. Reproducible: Always
Created attachment 200918 [details] use hasNext to ensure that NoSuchElementException cannot occur.
code very similar to this is in the process of being merged to the eclipse edc git repository after having encountered this bug in our local source repository.
Fixed in: http://git.eclipse.org/c/cdt/org.eclipse.cdt.edc.git/commit/?id=f7c4790c134d0cdc30cdbe8d2a016bf27cd25528