Using loader to load the component but always get error(warning?or just a state report?) message

main.qml
Qt Code:
  1. import QtQuick 2.1
  2. import QtQuick.Controls 1.0
  3. import QtQuick.Layouts 1.0
  4. import QtQuick.Dialogs 1.0
  5.  
  6. Rectangle {
  7. width: 100
  8. height: 62
  9.  
  10. ImageView{
  11. id:imView
  12.  
  13. anchors.fill: parent
  14. }
  15.  
  16. Image{
  17. anchors.fill: parent
  18. //this is where the problem come from
  19. source: imView.getCurrentFile()
  20. }
  21. }
To copy to clipboard, switch view to plain text mode 
ImageView
Qt Code:
  1. import QtQuick 2.0
  2. import QtQuick.Controls 1.0
  3. import QtQuick.Layouts 1.0
  4.  
  5. Rectangle {
  6. width: 100
  7. height: 62
  8.  
  9. function appendFiles(files){
  10. for(var i = 0; i != files.length; ++i){
  11. filesModel.append({"source": files[i]})
  12. }
  13. }
  14.  
  15. //this is where the problem come from
  16. function getCurrentFile(){
  17. if(loader.status == Loader.Ready){
  18. return filesModel.get(loader.item.currentRow).source
  19. }
  20.  
  21. return "-1"
  22. }
  23.  
  24. ListModel{
  25. id: filesModel
  26. }
  27.  
  28. Loader{
  29. id: loader
  30.  
  31. sourceComponent: tableViewHeavyComponent
  32. }
  33.  
  34. Component{
  35. id: tableViewHeavyComponent
  36.  
  37. Rectangle{
  38.  
  39. }
  40. }
  41. }
To copy to clipboard, switch view to plain text mode 
Could I safely omit this error message, if not
how should I deal with it?