Fix the possible NULL pointer issue for elastic truncate from reoganizing the code from its original version
Merge branch 'master' of github.com:VoltDB/voltdb into ENG-6075-truncate
Merge pull request #1338 from VoltDB/ENG-6075-truncate

Eng 6075 truncate