ListView dando NullPointer

Tenho a seguinte chamada abaixo que está sendo chamada em um menu lateral, quando chega na ultima linha do código na hora de preencher a Tela está dando NullPointer não estou entendendo o porque eu criei essa outra tela, mais herdando a principal que eu precisava que o Layout dela seria diferente.

public boolean onNavigationItemSelected(MenuItem item) {
// Handle navigation view item clicks here.
int id = item.getItemId();

if (id == R.id.nav_markets) {

    DownloadGetMarkers downloadGetMarkers = new DownloadGetMarkers();
    downloadGetMarkers.execute("https://bittrex.com/api/v1.1/public/getmarkets");
    try {
        List<Markets> listMarkets = (List<Markets>) downloadGetMarkers.get();
        loadViewGetMarkets(listMarkets);
    } catch (InterruptedException e) {
        e.printStackTrace();
    } catch (ExecutionException e) {
        e.printStackTrace();
    }

} else if (id == R.id.nav_currencies) {
    DownloadGetCurrencies downloadGetCurrencies = new DownloadGetCurrencies();
    downloadGetCurrencies.execute("https://bittrex.com/api/v1.1/public/getcurrencies");
    try {
        List<Currencies> listCurrencies = (List<Currencies>) downloadGetCurrencies.get();
        loadViewGetCurrencies(listCurrencies);
    } catch (InterruptedException e) {
        e.printStackTrace();
    } catch (ExecutionException e) {
        e.printStackTrace();
    }
} else if (id == R.id.nav_tickers) {
    DownloadGetMarkers downloadGetMarkers = new DownloadGetMarkers();
    downloadGetMarkers.execute("https://bittrex.com/api/v1.1/public/getmarkets");

    DownloadGetTicker downloadGetTicker = new DownloadGetTicker();
    downloadGetTicker.execute("https://bittrex.com/api/v1.1/public/getticker?market=", "BTC-LTC");
    try {
        List<Markets> listMarkets = (List<Markets>) downloadGetMarkers.get();
        loadViewGetTickerMarket(listMarkets);

        //Ticker ticker = (Ticker) downloadGetTicker.get();
        //loadViewGetTicker(ticker);
    } catch (InterruptedException e) {
        e.printStackTrace();
    } catch (ExecutionException e) {
        e.printStackTrace();
    }
} /*else if (id == R.id.nav_manage) {

} else if (id == R.id.nav_share) {

} else if (id == R.id.nav_send) {

}*/

DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);
return true;
}

protected void loadViewGetTickerMarket(List<Markets> listMarkets) {
ListView listView = (ListView) findViewById(R.id.listViewMarket);

String[] teste = new String[] {"Teste1", "Teste2"};

listView.setAdapter(new ArrayAdapter<String>(this, R.layout.content_bit_trex_market, teste));

}

Poste o StackTrace.
Causas comuns: você não inicializou alguma variável ou tem algum método que retorna null sem o tratamento previsto.

Coloque um ponto de interrupção antes desta linha, use o debug e veja quais variáveis deveriam estar inicializadas e estão como null.

o ListView que está dando NULL mas não estou entendendo o porque.

Bom pesquisando um pouco eu vi que parece que falta o inflate para chamar a tela, mas mesmo assim ainda não está funcionando, não está aparecendo nada na tela.

protected void loadViewGetTickerMarket(List<Markets> listMarkets) {
    View view = getLayoutInflater().inflate(R.layout.content_bit_trex_market, null);
    ListView listView = (ListView) view.findViewById(R.id.listViewMarket);
    Log.e("ESC: ", "ListView: " + listView.toString());

    String[] teste = new String[] {"Teste1", "Teste2"};

    if (listMarkets.size() > 0) {
        Log.e("ESC: ", "Entrou NO IF");
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(
                BitTrexActivity.this,
                R.layout.content_bit_trex_market, teste);
        listView.setAdapter(adapter);

    } else {
        AlertDialog.Builder builder = new AlertDialog.Builder(
                BitTrexActivity.this).setTitle("Atenção")
                .setMessage("Não foi possivel acessar essas informções...")
                .setPositiveButton("OK", null);
        builder.create().show();
    }
}

Edinho, eu vou te pedir desculpas, pois eu não sei nada de android, eu só percebi depois de primeira postagem que fiz.

Mas mesmo assim, eu vou apontar algo que parece lógico pra mim, veja a instrução a seguir:

Reveja a seguinte instrução: view.findViewById(R.id.listViewMarket).

Tente imprimir o objeto R.id.listViewMarket, pois acho que não vai imprimir o que você procura.

Use o debug também pra ver quem são as variáveis, pois eu acho que este id não está encontrado os objetos desejados, impedindo a inicialização do ListView.

É só uma impressão e vou me limitar neste ponto. :smile_cat:
Boa sorte.
Go ahead.