Even with a significant delay, there is a good chance that you will make the CGK flight. Just proceed straight to depart. level on the aerobridge rather than walking to arrivals level to clear transit security and boarding pass check. I wouldn't be concerned about this connection.
QR has flights that will get you into CGK in the early morning the following day.